//需要异步调用 editText为EditText的id 也是用于PopupWindow的软键盘 弹出
Handler handle = new Handler();
handle.postDelayed(new Runnable() {
@Override
public void run() {
InputMethodManager inputMethodManager = (InputMethodManager) editText.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.showSoftInput(editText, 0);
}
}, 0);
设置android自动弹出软件盘
最新推荐文章于 2024-07-04 16:13:56 发布