Hi there, I created a custolistview, in which there are 3 radiobuttons and a spinner. If I use the 3 radiobuttons ,the spinner changes words, but if I add the radiobuttons and spinner in a customlistview It doesn't work... Do you have any Ideas?
without customlistview:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout1")
GreenArr(0)= "green0"
GreenArr(1)= "green1"
RedArr(0)="red0"
RedArr(1)="red1"
RedArr(2)="red2"
YellowArr(0)="yellow0"
YellowArr(1)="yellow1"
YellowArr(2)="yellow2"
YellowArr(3)="yellow3"
end sub
Private Sub RadioButtonGreen_CheckedChange(Checked As Boolean)
Spinner1.Clear
Spinner1.Prompt="Green"
Spinner1.AddAll(GreenArr)
end sub
Private Sub RadioButtonRed_CheckedChange(Checked As Boolean)
Spinner1.Clear
Spinner1.Prompt="red"
Spinner1.AddAll(RedArr)
End Sub
Private Sub RadioButtonyellow_CheckedChange(Checked As Boolean)
Spinner1.Clear
Spinner1.Prompt="yellow"
Spinner1.AddAll(YellowArr)
End Sub
with customlistview:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout1")
GreenArr(0)= "green0"
GreenArr(1)= "green1"
RedArr(0)="red0"
RedArr(1)="red1"
RedArr(2)="red2"
YellowArr(0)="yellow0"
YellowArr(1)="yellow1"
YellowArr(2)="yellow2"
YellowArr(3)="yellow3"
'se carico layout in activity spinner e radiobutton funzionano perfettamente. se le metto nella custom list view no...
For i = 0 To 20
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(20000,0,0,100%x,60dip)
p.LoadLayout("Layout")
CustomListView1.Add(p,i)
Next
End Sub