Can you set “tab order” in XML Layout?

前端 未结 7 2225
不思量自难忘°
不思量自难忘° 2020-12-05 16:49

I\'ve got users with tablets that have a tab key on their soft keyboard. I am using a table view and have 3 EditText Fields in one row with EditText fields below the curren

相关标签:
7条回答
  • 2020-12-05 17:39

    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.

    0 讨论(0)
提交回复
热议问题