in my app, i have created table rows dynamically
in each table row, i provide an icon that will help the user help in deleting that specific row
how can i achieve this? any suggestions please
is there a better option than using setVisibility()?
i tried setTag() and setId(), but it doesn’t seem to work after one row is deleted, since the id values remain same after deletion
hope my question is well understood
lets assume your layout is like this.
your icon view can be anything ImageView or ImageButton. since you din’t post any xml. i am just referring as icon.
Now, how to access the table row to delete?
on the onClick event. you get access to the icon view.
will give access to the parent view after which you can perform deletions on this view.