Android Question help about spinner

Zakariya

New Member
hi guys
i dont know how to use spinner like when i make some button with it how can i go to any address that i click on that button
 
I dont understand your question. How does "address" fit into Spinner and button? You should explain more details of what exactly you want to do, what code you are using and what you expect to happen.
 
Upvote 0
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
Spinner1.AddAll(Array As String("saturday","ye sunday","monday"))
Spinner1.SelectedIndex=True
Spinner2.Add("Text size = 16")
Log(Spinner1.TextSize)
Spinner1.TextSize = Spinner1.TextSize * 1
Log(Spinner1.TextSize)
End Sub

its spinner send text that i download it here but i dont know which code to use that when i click on saturday or sunday or monday it open new activity .

thank a lot for helping
 
Upvote 0
You need to be much more precise on what exactly you want to do.

Some comments about your code:
Spinner1.SelectedIndex=True this is wrong ! SelectedIndex must be an Int (integer number)
Spinner1.TextSize = Spinner1.TextSize * 1 what is this supposed to do ? TextSize remains the same !
Spinners have the ItemClick event, you should create a routine like this and put the code you need in this routine:
Sub Spinner1_ItemClick(Position As Int, Value As Object)
' your code
End Sub

You can generate the routine squelleton in the Designer with Generate Members (Tools menu).
 
Upvote 0
Back
Top