I can't get a response from a spinner and I don't understand why.
I have a spinner defined, initialized, allocated it content and I get the list displayed when pressing on the arrow.
The event sub is not entered at item click:
(I tried two options until I found that it does not enter).:sign0085:
I have a spinner defined, initialized, allocated it content and I get the list displayed when pressing on the arrow.
B4X:
tgtspin.Initialize(tgtspin)
Activity.AddView(tgtspin,140dip,0,40dip,38dip)
....
For i = 1 To route.Size
tgtspin.Add("Target # " & i)
Next
tgtspin.Enabled = True
The event sub is not entered at item click:
B4X:
Sub tgtspin_ItemClick (Position As Int, Value As Object)
tgtno = tgtspin.SelectedIndex + 1
tgtlabel.Text = tgtspin.SelectedIndex + 1
'tgtno = position + 1
'tgtlabel.Text = position + 1
End Sub
(I tried two options until I found that it does not enter).:sign0085: