Hi,
i was able to do transparent status bar on android 10 and below with this code
but after i update my phone to android 11, it wont work, any help appreciated, thanks.
i was able to do transparent status bar on android 10 and below with this code
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim p As Phone
If p.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)))
Activity.Height = Activity.Height + 80dip
Dim pnl As Panel
pnl.Initialize("")
pnl.Color = Colors.Red
Activity.AddView(pnl, 0, Activity.Height + 24dip, 100%x, 80dip)
End If
Activity.LoadLayout("1")
End Sub
but after i update my phone to android 11, it wont work, any help appreciated, thanks.