https://developer.android.com/training/keyboard-input/style.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| static Timer timer = new Timer();
timer.schedule(new TimerTask() { @Override public void run() {
showSoftKeyboard(etInvestMoney); } }, 200);
private void showSoftKeyboard(View view) { if (view.requestFocus()) { InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, InputMethodManager.RESULT_UNCHANGED_SHOWN); } }
|
http://www.jianshu.com/p/215b388a6e7d
https://juejin.im/post/5eddf8456fb9a04804041738