and need to be able to change the width and height at runtime.
Unfortunately there is only the possibility to set the width and height in the designer.
I have already tried to put the whole thing in a panel and dock it in some way, but nothing works.
For Each lbl As Label In GetAllTabLabels(TabStrip1) 'based on 5 tabs
lbl.Width = 20%x
lbl.Height=75dip
Next
B4X:
Public Sub GetAllTabLabels (tabstrip As TabStrip) As List
Dim jo As JavaObject = tabstrip
Dim r As Reflector
r.Target = jo.GetField("tabStrip")
Dim tc As Panel = r.GetField("tabsContainer")
Dim res As List
res.Initialize
For Each v As View In tc
If v Is Label Then res.Add(v)
If v.Tag Is Label Then res.Add(v.Tag)
Next
Return res
End Sub