I can change the text colors and icons in the status bar with the following code.
I can also change the colors of the navigation bar icons with the following code.
but when I try to use both codes together, only the last code that is applied, how can I change both?
B4X:
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView",Null). _
RunMethod("setSystemUiVisibility", Array(0x00002000)) 'ICONS DARK STATUS BAR
I can also change the colors of the navigation bar icons with the following code.
B4X:
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView",Null). _
RunMethod("setSystemUiVisibility", Array(0x08000000)) 'ICONS LIGHT NAVIGATION BAR
but when I try to use both codes together, only the last code that is applied, how can I change both?
B4X:
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView",Null). _
RunMethod("setSystemUiVisibility", Array(0x00002000)) 'ICONS DARK STATUS BAR
jo.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView",Null). _
RunMethod("setSystemUiVisibility", Array(0x08000000)) 'ICONS LIGHT NAVIGATION BAR