android dialog弹框 EditText 软键盘不弹出问题
方案一:加show监听,然后强制弹出即可AlertDialog dialog = new AlertDialog.Builder(context).setView(customView).setCancelable(isCancelable).create();dialog.setOnShowListener(new DialogInterface.OnShowListener() {@.
·
方案一:加show监听,然后强制弹出即可
AlertDialog dialog = new AlertDialog.Builder(context)
.setView(customView)
.setCancelable(isCancelable).create();
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public void onShow(DialogInterface dialogInterface) {
KeyboardUtils.showSoftInput(context);
}
});
方案二:设置点击事件,然后强制弹出
方案三:延时强制弹框
更多推荐
已为社区贡献14条内容
所有评论(0)