I am trying to get a login screen for an Android app and so far this is my code:
You should set OnEditorActionListener for the EditText to implement the action you want to perform when user clicks the "Done" in keyboard.