Android Question How to set the color of the bar with the environment

rezaghasmi

Member
Hello friends How can I adjust the top color of the screen with the color of the environment

IMG_20210128_081026_882.jpg
IMG_20210128_081028_164.jpg
 

ramezaniabbas

Active Member
Licensed User
Hello friends How can I adjust the top color of the screen with the color of the environment

View attachment 107043View attachment 107044


B4X:
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
 
Upvote 0

Erel

Administrator
Staff member
Licensed User
 
Upvote 0
Top