Android Question SOLVED Upper bar color change

saeed10051

Active Member
Licensed User
Hi All
i have an app in which i am setting following value
B4X:
#FullScreen: false
#IncludeTitle: False
the activity title is not showing, but my problem is that i cannot set a certain color for the upper bar in which the time and battery percentage etc. come. It is showing in grey color. I have tried to set the color of my activity to a certain value but when i run the program the upper bar is coming in default grey color.
 

Alexander Stolte

Expert
Licensed User
B4X:
Private NativeMe As JavaObject
NativeMe.InitializeContext
NativeMe.RunMethodJO("getWindow", Null).RunMethod("setStatusBarColor", Array(xui.Color_Black))'StatusBar - TopBar
NativeMe.RunMethodJO("getWindow", Null).RunMethod("setNavigationBarColor", Array(xui.Color_Black))'NavigationBar - BottomBar
 
Upvote 0

saeed10051

Active Member
Licensed User
B4X:
Private NativeMe As JavaObject
NativeMe.InitializeContext
NativeMe.RunMethodJO("getWindow", Null).RunMethod("setStatusBarColor", Array(xui.Color_Black))'StatusBar - TopBar
NativeMe.RunMethodJO("getWindow", Null).RunMethod("setNavigationBarColor", Array(xui.Color_Black))'NavigationBar - BottomBar
Thanks Alexander Stolte, i have following hex color to set for the top bar
#FF8B1538
How can i set this value in Array(xui,Color_Black)
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Thanks Alexander Stolte, i have following hex color to set for the top bar
#FF8B1538
How can i set this value in Array(xui,Color_Black)
 
Upvote 0

saeed10051

Active Member
Licensed User
Thanks Again for your help
I have used the option xui,color_rgb in the code
The issue is resolved. Thanks.
 
Upvote 0
Top