P postasat Active Member Licensed User Longtime User Mar 3, 2018 #1 Hi, I have a form with a lot of label, pane and some buttons and imageview. I set the layout variant to 1280x800. When I run it for example on a screen 1920x1080, if I switch to fullscreen, all the object remain with the same size and I lost my form layout. Is it possible to resize all object (in an easy mode) when the form size change ? Thank you.
Hi, I have a form with a lot of label, pane and some buttons and imageview. I set the layout variant to 1280x800. When I run it for example on a screen 1920x1080, if I switch to fullscreen, all the object remain with the same size and I lost my form layout. Is it possible to resize all object (in an easy mode) when the form size change ? Thank you.
Eme Fibonacci Well-Known Member Licensed User Longtime User Mar 3, 2018 #2 You should use Anchors. See tutorial: https://www.b4x.com/android/forum/threads/b4x-anchors-demonstrated.64112/#content Upvote 0
You should use Anchors. See tutorial: https://www.b4x.com/android/forum/threads/b4x-anchors-demonstrated.64112/#content
P postasat Active Member Licensed User Longtime User Mar 4, 2018 #3 Hi, thank you for tutorial link, but for my form is not useful because I have a lot of pane with inside a lot of label. See image. I think I must use the event B4X: Sub MainForm_Resize (Width As Double, Height As Double) . Programmatically with Mainform_resize I must resize every single item on my form. I hope in something more easy and fast to resize all the items. Thank you. Attachments example.png 31.8 KB · Views: 294 Upvote 0
Hi, thank you for tutorial link, but for my form is not useful because I have a lot of pane with inside a lot of label. See image. I think I must use the event B4X: Sub MainForm_Resize (Width As Double, Height As Double) . Programmatically with Mainform_resize I must resize every single item on my form. I hope in something more easy and fast to resize all the items. Thank you.
Erel B4X founder Staff member Licensed User Longtime User Mar 4, 2018 #4 Avoid resizing the views yourself. Check this example: https://www.b4x.com/android/forum/threads/custom-view-gridmanager.79144/#content Upvote 0
Avoid resizing the views yourself. Check this example: https://www.b4x.com/android/forum/threads/custom-view-gridmanager.79144/#content