android - How to create complex ListView with grouped items? -
i'm trying create listview adapter grouped contents. cannot use multiple types of list items, because i've got complex design(image not real design, layout):

you can see image, there list item views inside group view. , group view has set background whole group, not header. therefore cannot use expandablelistview either:
.
is possible somehow possible implement design using few inflated elements, , on-demand content population these elements listview does?
or need implement whole widget on own? i've took quick @ listview sources. 4k loc!
i know, similar possible using hack: 3 types of list items: header, item, last_item_of_group. , fake background of group using these different items (header,item,item,item,last,header,item,item,...), can't now!
you can try using expandable listview. http://developer.android.com/reference/android/widget/expandablelistview.html
Comments
Post a Comment