Android中如何自动弹出软键盘

原创
2013/09/04 14:43
阅读数 6.6K
  edtsearch_title = (EditText) findViewById(R.id.edtsearch_title);
  edtsearch_title.setFocusable(true);
  edtsearch_title.setFocusableInTouchMode(true);
  edtsearch_title.requestFocus();
  InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.showSoftInput(edtsearch_title, InputMethodManager.RESULT_SHOWN);
  imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
  
展开阅读全文
加载中

作者的其它热门文章

打赏
1
0 收藏
分享
打赏
0 评论
0 收藏
1
分享
返回顶部
顶部