Android ListView summary -


i'm using listactivity in usual way: load arraylist of item database , use custom adapter show data. display listview (each row item):

  date      field1   field2  ... fieldn 2012/03/02   ...       ...         ... 2012/03/02   ...       ...         ... 2012/03/02   ...       ...         ... 2012/04/07   ...       ...         ... 

what want show row summary grouping date. example, want display previous list next one:

  date      field1   field2  ... fieldn ** 2012/03/02 3 rows 2012/03/02   ...       ...         ... 2012/03/02   ...       ...         ... 2012/03/02   ...       ...         ... ** 2012/04/07 1 row 2012/04/07   ...       ...         ... 

so, question how can it? need implement own listview? or there feature of listview don't know yet?

use expandablelistview instead, "** 2012/03/02 3 rows" , "** 2012/04/07 1 row" parent items , rest children items. here place can up: http://developer.android.com/reference/android/widget/expandablelistview.html. hope helps.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -