Android Question update button text

Daniel G

Member
Licensed User
Longtime User
Hi ,

I have a layout with a spinner
and I try to change the text of a button in this layout
with the spinner value

Can you tell me where is the problem ?

All the sub run ok
but the layout not change...

Thank's

Daniel

Sub Spinner1_ItemClick (Position As Int, Value As Object)
Activity.Invalidate
Dim Lavaleur As String
Dim Button2 as button
Button2.Initialize(Button2)
Lavaleur=Spinner1.GetItem(Position)
Button2.Initialize(Button2)
Button2.text=Lavaleur
end
 
Back
Top