Android Question Spinners and AddView

Arf

Well-Known Member
Licensed User
Longtime User
Do I have to add a spinner to a screen using Addview? I tried to do it using the designer and it gets added, but the entries added to the spinner don't show up.

No problem using Activity.Addview, except where can I find out what the Addview arguments are? I can't seem to find the right bit of documentation.

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Spinners can be added with the designer and then items are added in code. If it is not working as expected I would say either you haven't declared it properly or you have spinner.Initialize. You shouldn't initialize views in code if they are set in designer.

Show us some code maybe?
 
Upvote 0

Arf

Well-Known Member
Licensed User
Longtime User
ah thanks, I have .Initialise in the code. I'll remove and try again.
 
Upvote 0
Top