I have created a dynamic TableLayout
in my android app in which the rows changes for every iteration. For first iteration it show up data from XML response and for second iteration it has to show up only the updated XML response. But in my case it is taking data from iteration 1 _iteration. How to clear table rows before next iteration starts to load in android
Asked
Active
Viewed 72 times
0

Mohamed Mohaideen AH
- 2,527
- 1
- 16
- 24

Janani
- 3
- 2
-
i mean showing up old table data along with new table data. need to show only the latest table data – Janani Oct 16 '18 at 10:44
1 Answers
1
We can use this answer as a reference.
You can call removeAllViews()
method on the TableLayout
object.
For example, tableLayout.removeAllViews()
.

Pang
- 9,564
- 146
- 81
- 122

Mohit Ajwani
- 1,328
- 12
- 24