First, It is working now, but I do not understand why, so please read.
I have a main activity and a tab host.
2 spinners on the Main activity (spnMeasures and spnSex) and one on the tab host (spnAge) (The one that is loaded by default when you start the app.
in activity create, I first loaded the Layout
then added tabs
then added items to the spinners:
spnMeasures.Add("Inches")
spnMeasures.Add("Cm")
spnSex.Add("Male")
spnSex.Add("Female")
spntAge.Add("")
Dim i As Int
For i = 0 To 100
spnAge.Add(i)
Next
When I ran the app, nothing was added to spnAge, but spnMeasures and spnSex was ok.
I moved spnAge from the tab layout to the layout for main.
Nothing added.
I deleted the members from main and re-created the member for spnAge from designer.
Nothing added
I deleted spnAge, deleted the member, duplicated spnSex, creted member for spnAge via the designer.
Nothing added
I deleted spnAge and the member, added New spinner and creted the member.
Nothing added.
I tried changing spnAge.Add(i) to spnAge.Add("HEY") and add spnAge.Add("DONE") after the loop.
Nothing added
spnMeasures.Add("Inches")
spnMeasures.Add("Cm")
spnSex.Add("Male")
spnSex.Add("Female")
spnCurrentAge.Add("")
Dim i As Int
For i = 0 To 100
spnCurrentAge.Add("HEY")
Next
spnAge.Add("DONE")
I changed the name from spnAge to spnCurrentAge
Deleted the spnAge member end re-created it in the designer.
spnMeasures.Add("Inches")
spnMeasures.Add("Cm")
spnSex.Add("Male")
spnSex.Add("Female")
Dim i As Int
For i = 0 To 100
spnCurrentAge.Add(i)
Next
It works!!!
but.... why?
Do anyone have an idea?