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
 

victormedranop

Well-Known Member
Licensed User
Longtime User
can you post you code,
or verify that you used addview to every panel with the spinner

code or designer??

Victor
 
Upvote 0

Gavin O'Connor

Member
Licensed User
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?

B4X:
Activity.AddView (Spinner1, 415dip, 370dip, 150dip, 70dip )
 
Last edited:
Upvote 0

Gavin O'Connor

Member
Licensed User
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?,

B4X:
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
Top