android - Can you set "tab order" in XML Layout? -
i've got users tablets have tab key on soft keyboard. using table view , have 3 edittext fields in 1 row edittext fields below current row.
when user hits tab takes them next field below, not next field right.
is there way in layout set tab order or done programatically?
if can done in java, how done?
thanks tip on nextfocusright didn' seem work (or did wrong)
here code used. have add imeoptions "next" button show in emulator. see wrong way did this?
<edittext android:id="@+id/bikehht" android:layout_width="50dip" android:layout_height="40dip" android:textsize="14px" android:maxlength="2" android:nextfocusleft="@+id/bikemmt" android:imeoptions="actionnext" android:layout_column="1"/> <edittext android:id="@+id/bikemmt" android:layout_width="50dip" android:layout_height="40dip" android:textsize="14px" android:nextfocusright="@+id/bikesst" android:imeoptions="actionnext" android:maxlength="2"/>
replace android:nextfocusleft
android:nextfocusdown
. "next" soft button or tab key looking next "down" focus , not left or right.
Comments
Post a Comment