Android Question TabHost Panel ClassCastException

grant1842

Active Member
Licensed User
Longtime User
I have a TabHost with one tab and a panel for the content. When I try to log the Panel.Left it gives me a ClassCastException error. I'm trying to dynamically create and add controls to the panel and keep them aligned properly.

B4X:
Dim p As Panel
p.Initialize("")

thAddCustomer.AddTab2("test",p)
Log(p.Left)
 
Last edited:
Top