android - Is it possible to have sub-totals with an ExpandalbeListView? -
i'm busy building activity has expandablelistview. i'm doing research @ point on how etc.
the thing list there cost field displays amount item worth. each item associated category, that's why have expandablelistview.
is possible have last row in group totals record? or have total in group header? if possible, there examples can work from?
if isn't possible, there other kind of widgets, views can provide kind of functionality?
thanks
edit: example of mean, please see below
---category - cats ---- > cat 1 $10 cat 2 $10 cat 3 $10 total $30 ---category - dogs ---- > dog 1 $10 dog 2 $10 dog 3 $10 total $30 ---category - etc ---- > etc 1 $10 etc 2 $10 etc 3 $10 total $30 ------------------------------------- grand total: $90 option have display ---category - cats - total $30---- > cat 1 $10 cat 2 $10 cat 3 $10 ---category - dogs - total $30 ---- > dog 1 $10 dog 2 $10 dog 3 $10 ---category - etc - total $30 ---- > etc 1 $10 etc 2 $10 etc 3 $10 ------------------------------------- grand total: $90
just keep in mind categories expandable lists longer.
richard , expandablelistview similar listview can use addheaderview or addfooterview in expandablelistview
is possible have last row in group totals record?
richard , can update headerview(or footerview) per user's purchases make total.
Comments
Post a Comment