I have a collection of viewmodels in an ArrayObservable, let's assume VM1 and VM2 is in it.
Each VM defines a LayoutID, VM1 defines 'layoutOneText' and VM2 defines 'layoutTwoText'
This ArrayObservable is displayed (bound by) a BindableLinearLayout.
VM1's layout (layoutOneText) displays one EditText (ED0) centered horizontally
VM2's layout (layoutTwoText) displays two EditTexts next to each other (ED1 and ED2) centered horizontally.
When the page is rendered, the following UI is displayed (more or less):
ED0
ED1 ED2
The problem is that when ED0 get's focus, and the user clicks 'Next' on the keyboard, ED2 is focused, and not ED1.
I must have ED1 focused in my case.
How can I do this, because layouts know nothing about each other (they shouldn't know), and it can happen that even more VMs are in the list, producing the following UI:
ED0
ED1 ED2
ED1 ED2
I want the focus to be: ED0 -> ED1 -> ED2 -> ED0(3rd row) -> ED1 (4th) -> ED2 (4th) -> and so on...
Of course I could define the focus-navigation-direction ISIDE 'layoutTwoText', so focus between ED1 and ED2 is OK, the problem comes between layouts.
Bye,
Csabi