B4J Question [ABMaterial] Before I place a New Component Request

Cableguy

Expert
Licensed User
Longtime User
Hi Alain,

I know I should have posted this in the feedback app, but I am unsure it is not already possible to acomplish this (re)using one of the existing components.

My goal is to create a Grid like Button/Card array like this one
12hmnsNsBxdNVxXb8

110827729-content-management-system-infographic-icon-set.jpg


I only need to create the single Card/Button. I need it to have a click event so that I can navigate to a different page...
So, before I place a New Component Request… Can this be already be done?
 

Cableguy

Expert
Licensed User
Longtime User
I may have not be very clear...
I mean the component itself, not the grid...
 
Upvote 0

XbNnX_507

Active Member
Licensed User
Longtime User
You can create a AbmaterialContainer with an image and a label
B4X:
In buildpage()
Abmaterial.container.addrow(1).addcell(4)
...Build!.

In connect()
Abmaterial.container.cell(1,1).addcmp(abmImage)
..abmaterial.container.cell(1,1).addcmp(amblabel) ' backcolor the same as the image
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
That's not a bad Idea!
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
Using ABMContainers is indeed the way to go to design such a component.

Maybe you can use a grid (2 rows, each 4 cells), adding such an ABMContainer in each cell. If you design your grid right, the responsiveness of the grid will jump in and e.g. on your phone place them under each other.
 
Upvote 0
Top