Android Question Tab Host and Spinner Box

Gavin O'Connor

Member
Licensed User
Hi All,

I have a Spinner box and a Tab Host Tab (Tab1) and it seems to be visible on Tab 2 and 3, how can I have the Spinner box to only appear on tab 1?

Any help would be greatly appreciated
 
Hi Victor,

I have tried a couple of options but I can't seem to get it to work, do you have an example of what I can do?

Code: Copy
Activity.AddView (Spinner1, 415dip, 370dip, 150dip, 70dip )
 
Last edited:
Upvote 0
Hi All,

I have also tried an AutoCompleteEditText and it is also present on all three tabs, please see code below, does anyone have any suggestions?,

Code: Copy
Sub Process_Globals

Dim ACT As AutoCompleteEditText

End Sub

Sub Activity_Create(FirstTime As Boolean)

ACT.Initialize ("ACT")
    Activity.AddView (ACT, 415dip, 370dip, 150dip, 70dip)
    Dim lamp() As String
    lamp = Array As String ( _
    "TPL-CAM", "TPL-STD24V", "TPL2")
    ACT.SetItems (lamp)

End Sub
 
Upvote 0
Back
Top