• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to delete a row in TableLayout dynamically.

Hi, I am having a TableLayout for which I added rows dynamically.In each of the row there are 2 elements of which one is TextView other is Button.When I click the button that is present in a row,that row should be deleted.How can this be done in Android ? How to find rowid and how to delete a row dynamically. can anyone help me in sorting out this issue.
Thanks in Advance,
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones