Ju Yang Active Member Licensed User Longtime User Nov 27, 2015 #1 when i set nav.NavigationBarVisible=False,the code doesn't work ,in this case ,how to change the color of status bar B4X: Dim OBJNavBar AsNativeObject = NavControl OBJNavBar.GetField("navigationBar").RunMethod("setBarTintColor:", Array(OBJNavBar.ColorToUIColor(Colors.Yellow)))
when i set nav.NavigationBarVisible=False,the code doesn't work ,in this case ,how to change the color of status bar B4X: Dim OBJNavBar AsNativeObject = NavControl OBJNavBar.GetField("navigationBar").RunMethod("setBarTintColor:", Array(OBJNavBar.ColorToUIColor(Colors.Yellow)))
Erel B4X founder Staff member Licensed User Longtime User Nov 29, 2015 #2 The code you posted changes the color of the navigation bar. You can change the status bar (the very top bar) style: https://www.b4x.com/android/forum/threads/change-textcolor-of-statusbar.51247/ Upvote 0
The code you posted changes the color of the navigation bar. You can change the status bar (the very top bar) style: https://www.b4x.com/android/forum/threads/change-textcolor-of-statusbar.51247/
Ju Yang Active Member Licensed User Longtime User Nov 30, 2015 #3 i want to change the status bar background to red ,how to do it Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2015 #4 You cannot explicitly change the color. You can only change the style. Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Nov 30, 2015 #5 Try to hide the Navigation bar et set the page.rootpanel.color to red Upvote 0