Android EditText 操作。。。

EditText请求焦点三连击。。。

 editText.setFocusable(true);
 editText.setFocusableInTouchMode(true);
 editText.requestFocus();
//如果需要输入法的话 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);

 

posted @ 2018-05-03 17:35  javakam  阅读(249)  评论(0)    收藏  举报