方案一:加show监听,然后强制弹出即可 AlertDialog dialog = new AlertDialog.Builder(context) .setView(customView) .setCancelable(isCancelable).create(); dialog.setOnShowListener(new DialogInterface.OnShowListener() { @Override pub
方案一:加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);
}
});
方案二:设置点击事件,然后强制弹出
方案三:延时强制弹框