I have a invisible EditText: ReplyInput and a button: ShowReply.
I want to show the ReplyInput and the soft keyboard after ShowReply is clicked.
Anyone has any idea about that?
Thank for reading :)
I have a invisible EditText: ReplyInput and a button: ShowReply.
I want to show the ReplyInput and the soft keyboard after ShowReply is clicked.
Anyone has any idea about that?
Thank for reading :)
Something like that:
InputMethodManager manager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
manager.showSoftInput(ReplyInput, InputMethodManager.SHOW_IMPLICIT);
One way is to make EditText visible upon clicking on Button and using InputMethodManager
to bring up soft keyboard (Here's how to do it), but there's a better way and that is to show EditText and then put focus on it, this way soft-keyboard will be brought up automatically.