Can't Add Items to Spinner

choliz

Member
Licensed User
Longtime User
Greetings,

I'm new in Android Development, but have quite some experience using VB.

I'm having problems adding items to a spinner. I see no errors in the log, but the spinner shows up empty.

I'm attaching the code. I'm using B4A version 2.0

Thanks in advance
 

Attachments

  • TuCarga.US.zip
    341.8 KB · Views: 310

kickaha

Well-Known Member
Licensed User
Longtime User
Remove this line
B4X:
spnOficina.Initialize("spnOficina")
As the spinner is part of the layout you should not initialize it, as that creates another spinner.
 
Upvote 0

Jim Brown

Active Member
Licensed User
Longtime User
As the spinner is part of the layout you should not initialize it, as that creates another spinner
That caught me out. I was pulling my hair out for hours wondering why my spinner was empty. I was initializing it too. Doh
 
Upvote 0
Top