Android Question immerse on android 16

Sofian

Member

Attachments

  • IMG-20261010-WA0005.jpg
    IMG-20261010-WA0005.jpg
    131.7 KB · Views: 33
  • IMG-20261010-WA0006.jpg
    IMG-20261010-WA0006.jpg
    151.6 KB · Views: 31
  • IMG-20261010-WA0007.jpg
    IMG-20261010-WA0007.jpg
    98.6 KB · Views: 29
  • 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: 28
  • 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: 28
  • b4x.png
    b4x.png
    41.4 KB · Views: 36
Last edited:

Sofian

Member
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.
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

on B4XMainPage no change like U said on sample :

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

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: 22
  • design.png
    design.png
    34.9 KB · Views: 23
Last edited:
Upvote 0

Sofian

Member
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: 20
  • WhatsApp Image 2026-10-11 at 20.59.57.jpeg
    WhatsApp Image 2026-10-11 at 20.59.57.jpeg
    132.6 KB · Views: 18
Upvote 0

Sofian

Member
just found solution, only add
snipp:
B4XPages.HandleInsets = False

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: 23
  • WhatsApp Image 2026-10-11 at 21.45.26.jpeg
    WhatsApp Image 2026-10-11 at 21.45.26.jpeg
    131.3 KB · Views: 25
Upvote 0
Top