Hello,
how can i to adjust the indicator length to the width?
in B4A i do it that way:
how can i to adjust the indicator length to the width?
in B4A i do it that way:
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)
Next
Return res
End Sub
For Each lbl As Label In Main.fun.GetAllTabLabels(ts_main)
lbl.Width = Round(Activity.Width/3)
Next