Arf Well-Known Member Licensed User Longtime User Sep 19, 2014 #1 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
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 Sep 19, 2014 #2 http://www.b4x.com/android/help/views.html#activity But it´s not much documentation on addview... Code: Copy AddView (View As android.view.View, Left As Int, Top As Int, Width As Int, Height As Int) 'Adds a view to this activity. Upvote 0
http://www.b4x.com/android/help/views.html#activity But it´s not much documentation on addview... Code: Copy AddView (View As android.view.View, Left As Int, Top As Int, Width As Int, Height As Int) 'Adds a view to this activity.
barx Well-Known Member Licensed User Longtime User Sep 19, 2014 #3 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
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?
Arf Well-Known Member Licensed User Longtime User Sep 19, 2014 #4 ah thanks, I have .Initialise in the code. I'll remove and try again. Upvote 0