Android Question Set focus to a listview

JakeBullet70

Well-Known Member
Licensed User
Longtime User
I am trying to set focus to a listview so I can see that the 1st item is highlighted. (the program uses a keyboard)

I have tried:

B4X:
lstLocations.RequestFocus
lstLocations.SetSelection(0)

But this does not work. I can press the down arrow at this point and then it highlights the 1st entry.
How dows one do this?
 
Last edited:

JakeBullet70

Well-Known Member
Licensed User
Longtime User
OK, update... When I run this on a real device it works...
Run it on the emulator and it does not...

hhhhhmmmmm....
 
Upvote 0
Top