Ydm Active Member Licensed User Longtime User Dec 6, 2016 #1 I have one panel. There are buttons in this panel. 33 pieces. How does the buttons fail when the screen size changes? How can it be reconfigured automatically in an equal fashion without overlapping? Attachments alpha_normal.jpg 26.3 KB · Views: 336 alpha_big.jpg 28.2 KB · Views: 352 alpha_small.jpg 12 KB · Views: 386
I have one panel. There are buttons in this panel. 33 pieces. How does the buttons fail when the screen size changes? How can it be reconfigured automatically in an equal fashion without overlapping?
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2016 #2 There should only be a single view per horizontal or vertical line with the anchors set to BOTH (https://www.b4x.com/android/forum/threads/b4x-anchors-demonstrated.64112/#post-405799). Specifically in this case you don't need to use anchors. I think that it is better to add the grid buttons programmatically. The other option is to use percentage in the designer. However it will be a bit cumbersome. Upvote 0
There should only be a single view per horizontal or vertical line with the anchors set to BOTH (https://www.b4x.com/android/forum/threads/b4x-anchors-demonstrated.64112/#post-405799). Specifically in this case you don't need to use anchors. I think that it is better to add the grid buttons programmatically. The other option is to use percentage in the designer. However it will be a bit cumbersome.
moster67 Expert Licensed User Longtime User Dec 6, 2016 #3 you could try these libraries: https://www.b4x.com/android/forum/threads/msdynamicgridview-library.49331/ https://www.b4x.com/android/forum/threads/library-b4agridview-v3-60.24965/#content Upvote 0
you could try these libraries: https://www.b4x.com/android/forum/threads/msdynamicgridview-library.49331/ https://www.b4x.com/android/forum/threads/library-b4agridview-v3-60.24965/#content
Ydm Active Member Licensed User Longtime User Dec 6, 2016 #4 Thanks... I looked at the components. I could not use it with Designer. Now I have to do this: I edit in Designer as in photos. I also make width, height, spacing settings in the code. Upvote 0
Thanks... I looked at the components. I could not use it with Designer. Now I have to do this: I edit in Designer as in photos. I also make width, height, spacing settings in the code.