So when any button click, first we check if it was created dynamically and then depending the id we proceed and choose what we want to happen when that button is clicked
ok, I proceed in small steps. In my Card View I have a label called LB3_
When I press button 1 I would like something to be written on the label, for example “like”
I have tried in various ways but I do not find …
@Still-learning
I have a for loop from 1 to 5, and for each number it creates a CardView with inside the labels, an image and two buttons. When I hit the button I was able to get a function executed. But I didn’t understand how to make sure that when I press button 1 it is clear that it has been pressed in CardView 1 or 2 or 3 or 4 or 5
I saw the example you suggested but I didn’t understand, sorry
When any button clicked
2.If the component Isdynamic
Then get id of the clicked component and replace the button id with none. Now in your hand you are having index. With this you can look for any other dynamically created component just by adding just id of it
I have showed/guide you, how to create a common layout for every click or at a same time…
Still what do you want? You want to know which button id is clicking mean, you need to use 2 things… 1.IsDynamic component then get id of the component
We do not know , show did you set up dynamic component procedure so unable to guide you further