i have a button and an edit text. I want to press the button and want the action to happen on edit text same that happens when edit text is pressed itself i.e. a keyboard opens f开发者_如何转开发or writing.
You do this on button click,
InputMethodManager mgr = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); mgr.showSoftInput(edit_text, InputMethodManager.SHOW_FORCED); edit_text.requestFocus();
精彩评论