Is it possible to change the background color of the label corresponding to the currently selected page in the _Pageselected event?
I do it in B4A using this code:
Where getalltablabels is
I do it in B4A using this code:
B4X:
Dim i As Int
For Each lbl As Label In GetAllTabLabels(TabStrip1)
If i = Position Then
lbl.SetColorAnimated(200, AccentColor, Colors.RGB(15,105,255))
Else
lbl.Color = AccentColor
End If
i = i + 1
Next
Where getalltablabels is
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