Skip to content

Instantly share code, notes, and snippets.

@Isabellle
Created May 11, 2016 19:04
Show Gist options
  • Save Isabellle/2b00138bb4cb0a43515e3b74de648a25 to your computer and use it in GitHub Desktop.
Save Isabellle/2b00138bb4cb0a43515e3b74de648a25 to your computer and use it in GitHub Desktop.
Android - Give Focus to EditText
itemTitle.requestFocus();
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(itemTitle, InputMethodManager.SHOW_IMPLICIT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment