Android Question request focus / tab host

merlin2049er

Well-Known Member
Licensed User
Longtime User
Hmm, got a couple of tabs. I'd like to set focus to the first edittext box.
Any hints?
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
B4X:
Sub TabHost1_TabChanged
    If TabHost1.CurrentTab = 1 Then
    EditText3.RequestFocus
   
    End If

   
End Sub

It kind of works, I've stepped thru it. It does set focus when the tab is changed to that tab, but something must move it's focus. Not sure what.
 
Upvote 0
Top