Softkeyboard not showing in AlertDialog for phone only

后端 未结 1 1719
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 12:12

Why the softkeyboard is showing only on the tablet is a mystery !

Here is the code that I have used.

AlertDialog.Builder builder = new AlertDialog.Bu         


        
相关标签:
1条回答
  • 2020-12-21 12:49

    I solved the problem

    AlertDialog alertDlg = builder.create();
    
    alertDlg.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
    
    alertDlg.show();
    
    0 讨论(0)
提交回复
热议问题