Andrew (Digitwell) Well-Known Member Licensed User Longtime User Jul 17, 2017 #1 Hi, Is it possible to control the colour of the tabstrip "Bar Colour" and "Selection Indicator colour" at run time? Thanks
Hi, Is it possible to control the colour of the tabstrip "Bar Colour" and "Selection Indicator colour" at run time? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2017 #2 You can use this code to change the colors: B4X: Dim no As NativeObject = TabStrip1 no.GetField("buttonBarView").SetField("backgroundColor", no.ColorToUIColor(Colors.Red)) no.GetField("buttonBarView").GetField("selectedBar").SetField("backgroundColor", no.ColorToUIColor(Colors.Blue)) Upvote 0
You can use this code to change the colors: B4X: Dim no As NativeObject = TabStrip1 no.GetField("buttonBarView").SetField("backgroundColor", no.ColorToUIColor(Colors.Red)) no.GetField("buttonBarView").GetField("selectedBar").SetField("backgroundColor", no.ColorToUIColor(Colors.Blue))