1.EditText默认不获取焦点问题:在父控件中添加
android:focusable="true" android:focusableInTouchMode="true"
2.Dialog中的EditText点击不弹出软键盘问题:在设置view步骤之后添加以下代码
dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
1.EditText默认不获取焦点问题:在父控件中添加
android:focusable="true" android:focusableInTouchMode="true"
2.Dialog中的EditText点击不弹出软键盘问题:在设置view步骤之后添加以下代码
dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);