Here is a class that makes it easy to set the tab order for EditTexts on an activity and/or panel(s).
Set up a layout in the normal way then in Sub Globals:
And in Activity_Create:
The tab order will be the order the EditTexts are added to the array.
ForceDone is selected for the last EditText in the list unless Repeat is set to true. This is simple to change in the Class code if you want to.
It will compile directly to a usable library if you don't want to see the code as a module in the tabs.
I hope someone can make use of it.
Requires the Reflection Library.
V 1.0 attached
Set up a layout in the normal way then in Sub Globals:
B4X:
Dim FieldOrder As FOrder
And in Activity_Create:
B4X:
FieldOrder.Initialize(Array As Object(EditText1,EditText6,EditText5,EditText2,EditText3,EditText4),False)
The tab order will be the order the EditTexts are added to the array.
ForceDone is selected for the last EditText in the list unless Repeat is set to true. This is simple to change in the Class code if you want to.
It will compile directly to a usable library if you don't want to see the code as a module in the tabs.
I hope someone can make use of it.
Requires the Reflection Library.
V 1.0 attached