I have a listview which have json data. Data is coming with a flag like 0, 1, 2. I want to apply separator in listview based on the flag value. Like if the data have flag=0
then all respective data must be shown in listview under flag=0
separator. Then other separator must have all the values of flag=1
.
Asked
Active
Viewed 100 times
0

Luke Girvin
- 13,221
- 9
- 64
- 84

Varun Vishnoi
- 328
- 6
- 23
-
1Try expandable listview – Sanghita May 20 '13 at 10:23
-
You need multi section listview. http://andytsui.wordpress.com/2011/06/29/tutorial-displaying-multiple-lists-in-one-single-listview-with-android-binding/ – Raghunandan May 20 '13 at 10:23
1 Answers
0
From what I understand you basically want some headers, where you will display flag=0
or flag=1
or other titles. You can have more types of views in your adapter, so some of them can be headers and other contents, take a look at this Android ListView headers