在dialog中使用EditText键盘弹不起来的解决方法

// AlertDialog默认设置了WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM这个标志,所以键盘不会显示
  
dialog.getWindow().clearFlags(WindowManager.LayoutParams。FLAG_ALT_FOCUSABLE_IM);

猜你喜欢

转载自blog.csdn.net/briup_qiuqiu/article/details/80283693