I have an app with a couple of tabhost pages for simplicity. Each page has a few enabled and a few disabled edittext views. When I press the tab indicator to go to any of the two pages, the focus ALWAYS goes to the disabled box first where I did not want it to be, despite the following code:
I used a msgbox flag and I can see behind it that the focus gets on the enabled one I want. As soon I press the 'OK', it shifts to the disabled edit text which is to the right of the enabled one. I even switched their position on the designer and I still cannot get it to focus on the enabled. It happens in both tabs. Short of replacing the edittext views with labels, is there anything I can do to get the focus to stay away from the disabled ones. We need a TABSTOP property to avoid this mess.
B4X:
If TabHost1.CurrentTab=1 Then 'pres tab
Enable_P.RequestFocus 'enabled box
IME.ShowKeyboard(Enable_P)
Msgbox("Flag","")
End If