Android Question Problem on immersive mode

giada

Member
Hi,
i'm using immersive mode in B4xPages project. The problem is when i use IME softkey: after the IME is hidden the bar on the bottom re-appear...how can i re-hide it? i try to force a Sub Activity_WindowFocusChanged(HasFocus As Boolean) event but is not working...
Can someone help me?
Thanks
 

giada

Member
I realize a small example, when the IME go on the bottom bar stay up.
I've tried also to set IME flag ime
IME_FLAG_NO_EXTRACT_UI
IME_FLAG_NO_FULLSCREEN

but anything change.
What can i do?
 

Attachments

  • provaImmersive.zip
    457.4 KB · Views: 178
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Tip: correct way to create zips:
B4X:
'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip

Your code as-is works fine on my device, so I cannot debug it too much.

Try to add this:
B4X:
Sleep(2000)
CallSub2(Main, "Activity_WindowFocusChanged", True)

If it works then the correct solution is to implement it in the HeightChanged event: https://www.b4x.com/android/forum/t...or-managing-multiple-pages.118901/post-745090
 
Upvote 0

giada

Member
B4X:
Sleep(2000)
CallSub2(Main, "Activity_WindowFocusChanged", True)
Adding your suggestion after IME.hide works, also without sleep().
Now i try to implement the HeightChanged as you suggest.
tranks
 
Upvote 0
Top