0

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.

Luke Girvin
  • 13,221
  • 9
  • 64
  • 84
Varun Vishnoi
  • 328
  • 6
  • 23

1 Answers1

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

Community
  • 1
  • 1
bogdan
  • 782
  • 3
  • 7