I have button and i want when user clikc this button can switch between:
1.Black Navigation & Status Bar Background With Light Icon Or Text Color.
2.Light Navigation & Status Bar Background With Black Icon Or Text Color.
I found this Code:
B4X:
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView",Null). _
RunMethod("setSystemUiVisibility", Array(0x00002000)) 'ICONS DARK STATUS BAR
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView",Null). _
RunMethod("setSystemUiVisibility", Array(0x08000000)) 'ICONS LIGHT NAVIGATION BAR
but i don't now how use! help here!:
B4X:
Private Sub Btn_swicth_Click
If Theme_Mood = "Dark" Then
Else
End If
End Sub