I'm making a project that will dynamically add Views (RelativeLayouts
) to a GridLayout
. The only problem is that I need to get the row and column of that View
I have clicked on to dynamically add or remove a View
. I know that in Javascript
and html
I can add a data attribute. Is there something like that for android?
If there are also other ways of doing it, I will appreciate the help