I want to create dynamic card grid view. If i decide to create 50 dynamic card views then how to create it dynamically in grid view by 5 card views horizontally (5 Columns) then remaining (5) in a new row like wise for 50 card view.
Each card view with a label and label text to respective card view number (id).
I searched about it but not found anything helpful, i tried with dynamic components extension, Kodular dynamic card view but not succeed…
I tried with lists and it worked
Just put all the arrangement in the list in ascending order
the ID is exactly what you want (tested with notifier and when dynamic card view clicked)
However, this is also the reason I don’t like the default dynamic component, because you have to manually put all the arrangement.
I can make one with extension by @yusufcihan, tell me if you want.
Will do, can I use this idea to make a guide too?
Sure. this will be also helpful to others. spread the knowledge…
I tried, your method is working. but is it possible to create horizontal arrangements dynamically as per need? that means depending upon the number of card view to be created. 1 horizontal arrangement for 5 card views.
Yes, therefore you need to use extension.
If you want it create such layout that you drawn on Paper, then use this guide by
@nikzdreamer2001 and just need to do some changes. Like create on 5 cardview in each HA. It will help you.
Hey Koders, Nikhil here,
Yesterday I have got a question for creating layout in which component come to next line when width left(or unused) in previous arrangement is less for creating new arrangement…
So i have created it, but it will be little bit confusing for starter… So please try to understand it…
[Annotation 2020-05-17 130433]
We will create tags in Vertical Arrangement.
We are using Card View 1 to get width of card after setting new text in label1.
Remember one thing that p…
@themaayur so do you think I need to do the guide?
Can u please show your logic with dynamic components extension…
I tried same method,
see my blocks in post1 but it is not fully dynamic and also not able to get respective id in each card view.
I need to do the guide?
It’s your choice, but yes a specific guide for creating grid view dynamically, will be a good guide.
I will try but can’t promise anything, because
Online Classes and Assignment
First of all @Boban method will be so easy to make boxex of fixed size… and of 3 column too…
And if you cant to create is completely dynamically then you have to use my guide as
and there i have provided every detail only you have to do some changes
@WatermelonIce I think u should made… Because we always welcome new things even it is present because u may have choosed some kinda different logic if yes then u should share your work
@nikzdreamer2001 , but your method is little complicated. If doesn’t found other methods useful for my requirements then i will try yours.
@WatermelonIce 's logic works perfectly but need one more requirement, currently i am trying to achieve it.
If you want to make like this then i can provide aia
GridView.apk (5.0 MB)
I have already make a full guide. But it takes so long to approve.