Can you set "tab order" in XML Layout?

Replace android:nextFocusLeft by android:nextFocusDown. The "next" soft button or the TAB key is looking for the next "down" focus and not left or right.


I also notice that in your reference:

android:nextFocusRight="@+id/bikeSST"

The "+" character is required if you have not yet defined that id, if perhaps the element you reference is lower in the .xml file.

Otherwise you if it's already defined above (or included) then you can omit the "+" char:

android:nextFocusRight="@id/bikeSST"

An advantage of not using the "+" when you are referencing an ID that should already exist, is that the IDE and Lint checks can detect an error case: That you are referring to an ID that in fact does not exist.

If you include the "+", then you are creating it if doesn't exist and this check cannot be performed.

Tags:

Android