Dynamically Adding And Removing Table Rows - Android
I am trying to dynamically add and remove rows from a TableLayout. The layout is defined in an xml file. I am able to successfully remove a row, but when I call the corresponding a
Solution 1:
Use hierarchyviewer
(in your SDK tools/
directory) to determine if the row is truly not being added, or is being added but some layout parameters are messed up and so it is not appearing on-screen.
Solution 2:
publicintindexOfChild(View child)public View getChildAt(int index)
Both methods provided by TableLayout. ;-)
Post a Comment for "Dynamically Adding And Removing Table Rows - Android"