Android Keyboard Enter / Next Button

In my Android app, I have 4 EditText as below:

 E11 E12 E21 E22 

When I write to E11 and press Enter or TAB, it focuses E21 as the default Android behavior. How can I make him switch to E12?

+4
source share
1 answer

You would like to see the following xml attributes:

  • Android: nextFocusUp
  • android: nextFocusLeft
  • android: nextFocusDown
  • Android: nextFocusRight

More information and an example tutorial can be found on this.

+3
source

Source: https://habr.com/ru/post/1382274/


All Articles