Dim p As Phone
If p.SdkVersion >= 21 Then
Dim jo As JavaObject
Dim window As JavaObject = jo.InitializeContext.RunMethod("getWindow", Null)
window.RunMethod("addFlags", Array(Bit.Or(0x00000200, 0x08000000)))
Activity.Height = 100%y+25dip
End If
Changing the action bar, status bar and navigation bar colors is done with resources set in the manifest editor. The following code is fully supported by Android 5+ devices but it will also work properly on Android 4 devices. The manifest code: SetApplicationAttribute(android:theme...
Dim p As Phone
If p.SdkVersion >= 21 Then
Dim jo As JavaObject
Dim window As JavaObject = jo.InitializeContext.RunMethod("getWindow", Null)
window.RunMethod("addFlags", Array(Bit.Or(0x00000200, 0x08000000)))
Activity.Height = 100%y+25dip
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.