Android Question Simpler Spinner

ronell

Well-Known Member
Licensed User
Longtime User
how do i create a spinner with 3 items, if i select 1 of the item , display a msgbox with label of the current item selected,
can someone show some sample codes?
sorry for my bad english
 

mangojack

Expert
Licensed User
Longtime User
In Designer place 3 Labels with Text on a Panel.and set the Event Name the same ... ie MenuLabel. Generate a Click event for only 1 label.
Set Panel.Visible property to hide and show menu.

then in the MenuLabel_Click event ...
B4X:
Dim lbl as Label = Sender
Log (lbl.Text)    'or use in message box

If you nee further assistance maybe refer to beginners guide ...
https://www.b4x.com/android/files/guide.zip
 
Upvote 0
Top