Android Question immerse on android 16

Sofian

Member
Problem with old immerse layout B4Xpages project after update to Andoird 16 (Xiaomi Hyper OS 3), already try from this : https://www.b4x.com/android/forum/threads/b4xpages-top-bar-with-immersion-mode.169469/
[CODE lang="b4x" title="code1"]
#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region
[/CODE]
on B4xPages , it show white panel on top and bottom screen , but its normal on non-B4Xpages , like this pict shown :
 

Attachments

  • IMG-20261010-WA0005.jpg
    IMG-20261010-WA0005.jpg
    131.7 KB · Views: 62
  • IMG-20261010-WA0006.jpg
    IMG-20261010-WA0006.jpg
    151.6 KB · Views: 55
  • IMG-20261010-WA0007.jpg
    IMG-20261010-WA0007.jpg
    98.6 KB · Views: 53
  • Screenshot_2026-10-10-11-17-20-189_b4a.example.jpg
    Screenshot_2026-10-10-11-17-20-189_b4a.example.jpg
    51.7 KB · Views: 45
  • Screenshot_2026-10-10-11-17-26-062_b4a.example.jpg
    Screenshot_2026-10-10-11-17-26-062_b4a.example.jpg
    64.1 KB · Views: 46
  • b4x.png
    b4x.png
    41.4 KB · Views: 63
Last edited:
Create new B4xpages project,
add snippet on Main activity like sample https://www.b4x.com/android/forum/threads/b4a-v13-7-targetsdkversion-36-edge-to-edge.171756/#content
but I not include root.loadlayout in there, but already try blank panel addlayout also with same result.
[CODE lang="b4x" title="activity"]
#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region

Sub Activity_Create(FirstTime As Boolean)

ime.Initialize("ime")
root = xui.CreatePanel("")
Dim Content As Rect = ime.GetContentRect
Activity.AddView(root, Content.Left, Content.Top, Content.Width, Content.Height)
ime.UpdatePercentageReference(root.Width, root.Height)

Dim pm As B4XPagesManager
pm.Initialize(Activity)

End Sub[/CODE]

on B4XMainPage no change like U said on sample :

[CODE lang="b4x" title="b4xmain"]'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
ImageView1.SetBitmap(xui.LoadBitmapResize(File.DirAssets,"morning.webp",ImageView1.Width,ImageView1.Height,False))
End Sub[/CODE]

result, still get on top blank space . Can U give sample for fullscreen apps on b4xpages
 

Attachments

  • WhatsApp Image 2026-10-11 at 20.59.14.jpeg
    WhatsApp Image 2026-10-11 at 20.59.14.jpeg
    164.6 KB · Views: 48
  • design.png
    design.png
    34.9 KB · Views: 44
Last edited:
Upvote 0
If not fullscreen, already update to android16 and can normaly change color like this , but I need it full without statusbar on top and actionbar on bottom, only when swipe screen they show.
 

Attachments

  • WhatsApp Image 2026-10-11 at 21.00.34.jpeg
    WhatsApp Image 2026-10-11 at 21.00.34.jpeg
    133.3 KB · Views: 39
  • WhatsApp Image 2026-10-11 at 20.59.57.jpeg
    WhatsApp Image 2026-10-11 at 20.59.57.jpeg
    132.6 KB · Views: 43
Upvote 0
just found solution, only add
[CODE lang="b4x" title="snipp"]B4XPages.HandleInsets = False[/CODE]

on Main activity and Activity_WindowFocusChanged(True)
now it fix fullscreen. Thanks for help
 

Attachments

  • WhatsApp Image 2026-10-11 at 21.45.40.jpeg
    WhatsApp Image 2026-10-11 at 21.45.40.jpeg
    150.4 KB · Views: 50
  • WhatsApp Image 2026-10-11 at 21.45.26.jpeg
    WhatsApp Image 2026-10-11 at 21.45.26.jpeg
    131.3 KB · Views: 43
Upvote 0
Back
Top