Android Question [B4XPages] B4XPage_Resize event does not fire

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
I'm trying to resize my B4XPages app under the following condition:
I open my app in window mode (Huawei's EMUI 10.1 has this feature. I don't know about other implementations).
When I maximize the window, the layout remains to the initial dimensions.
I have noticed that when I maximize the window, the B4XPage_Resize event does not fire but I'm not sure if it should be.
Anyway, the issue of my post is that I'm trying to resize the app when the window is being maximized.
Is there any suggestion?

Thank you in advance
 

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
For resizing window, it is better to depend on script window in layout designer, write your resizing script there.
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
Hello @HAH!
Thank you for your response!
I've tried to do that, defining that the root panel of my layout will have width = 100%x and height = 100%y but no change happened!
Is the resizing script another kind of script with specific syntax?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Check that you haven't unchecked the handle resize event in the Main view in the designer.

 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
because on B4A this checkbox does not exists.

On B4A the Base_Resize-Event is not fireing, because theres is no such event.
Hello Alexander!
Thank you! I have noticed that B4XPage_Resize does not fire.
Do you know the way to resize my view when window is resized?
I have added to the manifest the
SetActivityAttribute(Main, android:resizeableActivity, "true")
but I can't figure out how to trigger the window resizing!
 
Upvote 0

Jorge M A

Well-Known Member
Licensed User
Longtime User
Maybe this can help.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…