May 4, 2017 Replies: 13 A simple custom view which creates a grid of panes. You can set the number of columns and rows. The panes are resized automatically when the GridManager is resized, make sure to use anchors in your layouts. In this example the same layout is loaded in each of the panes. You can of course load different layouts. Attachments GridManager.zip GridManager.zip 3.7 KB · Views: 1,397 Click to expand...
A simple custom view which creates a grid of panes. You can set the number of columns and rows. The panes are resized automatically when the GridManager is resized, make sure to use anchors in your layouts. In this example the same layout is loaded in each of the panes. You can of course load different layouts.
Roberto P. Well-Known Member Licensed User Longtime User May 4, 2017 #2 Erel, Would also be useful for B4A. thanks you
Erel B4X founder Staff member Licensed User Longtime User May 4, 2017 #3 It should be simple to port it to B4A. Add a new custom view class and add the code from this class (you will need to make some small and hopefully trivial changes). There is no resize event in B4A as the activity is recreated when the screen size changes.
It should be simple to port it to B4A. Add a new custom view class and add the code from this class (you will need to make some small and hopefully trivial changes). There is no resize event in B4A as the activity is recreated when the screen size changes.
Mashiane Expert Licensed User Longtime User Nov 11, 2017 #6 Hi, can one set the number of rows and columns at runtime if they are dependent on some variable perhaps?
Hi, can one set the number of rows and columns at runtime if they are dependent on some variable perhaps?
Erel B4X founder Staff member Licensed User Longtime User Nov 12, 2017 #7 It should be simple to modify the code and add a public sub that removes all nodes and creates new ones based on the new number of columns and rows. See the code in DesignerCreateView.
It should be simple to modify the code and add a public sub that removes all nodes and creates new ones based on the new number of columns and rows. See the code in DesignerCreateView.
LucaMs Expert Licensed User Longtime User Jul 14, 2018 #9 I know very little b4j (UI). Trying to do the same of what I would do in b4a, that is to create the view (GridManager1), remove it from its parent and add it to another parent), I obtained this junk. With small changes (resizing) you should succeed. (I prefer not to spend any more time on this test ). Attachments GridmanagerScrollable.zip GridmanagerScrollable.zip 5.2 KB · Views: 964 Last edited: Jul 14, 2018
I know very little b4j (UI). Trying to do the same of what I would do in b4a, that is to create the view (GridManager1), remove it from its parent and add it to another parent), I obtained this junk. With small changes (resizing) you should succeed. (I prefer not to spend any more time on this test ).
J jesuslizonsoluciones Member Licensed User Longtime User Feb 9, 2020 #11 Hi As I know, when I press a button on the panel, which of all is the one that I pressed and access the panel data? Greetings
Hi As I know, when I press a button on the panel, which of all is the one that I pressed and access the panel data? Greetings
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2020 #12 Use the Sender keyword. Watch the dynamic controls video tutorial: https://www.b4x.com/etp.html?vimeography_gallery=1&vimeography_video=254862941
Use the Sender keyword. Watch the dynamic controls video tutorial: https://www.b4x.com/etp.html?vimeography_gallery=1&vimeography_video=254862941
J jesuslizonsoluciones Member Licensed User Longtime User Feb 9, 2020 #14 excellent video tutorial thank you very much Erel