4

In my Android application I have 4 EditTexts laid out like this:

E11   E12

E21   E22

When I'm writing in E11 and tap Enter or TAB, it focus E21 as a default Android behaviour. How can I make it go to E12 instead?

fredley
  • 32,953
  • 42
  • 145
  • 236
Paulo Barros
  • 2,740
  • 8
  • 28
  • 36

1 Answers1

3

You would want to look at the following xml attributes :

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

More information and sample tutorial can be found at this link.

rDroid
  • 4,875
  • 3
  • 25
  • 30