I tried using this code for Transparent StatusBar that I learned from This Post On B4XPages for my new project : Dim ph As Phone If ph.SdkVersion >= 4.4 Then Dim jo As JavaObject Dim window As JavaObject = jo.InitializeContext.RunMethod("getWindow", Null)...
Thank you for the example project.
I'm using appcompat with no actionbar, I use a toolbar as actionbar (added in the designerview), I had to move 20dip down the toolbar and content panel, then set the same gradient color for the activity background and for the toolbar and seems to work just fine.
For some reason, now when I tried to input text on a edittext the keyboard covers the view, before it moved up to always make it visible. I tried to add this to the manifest editor but nothing happened, the view gets covered by the keyboard.
Dim ph As Phone
If ph.SdkVersion >= 4.4 Then
Dim jo As JavaObject
Dim window As JavaObject = jo.InitializeContext.RunMethod("getWindow", Null)
window.RunMethod("addFlags", Array(Bit.Or(0x00000200, 0x08000000)))
Root.Height = Root.Height +80dip
End If
Dim pnl As Panel
pnl.Initialize("")
pnl.Color = Colors.Transparent
Root.AddView(pnl, 0, Root.Height + 24dip, 100%x, 80dip)
The statusbar got transparented but the bottom of the page shown as a white space. like this image (Yeap , thats NavigationBar) :
That Code works fine for normal activity , but I got no idea how to solve the problem in B4X Page.