Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expandable Item in List on Android

I'm trying to make a list item expandable. Basically, I want to have a button on each list item that, when pushed, expands that list item to show more info.

Is this possible on android? if so, how would i do it?

Thanks

Edit: To clarify, ideally I'd like the current list item to enlargen to show more info

like image 876
Daniel Murphy Avatar asked Jun 07 '11 17:06

Daniel Murphy


2 Answers

Your easiest solution would probably be an ExpandableListView.

But you can also implement something yourself where a button in each ListView item unhides and hides View under the normal item.

like image 101
Will Tate Avatar answered Sep 30 '22 12:09

Will Tate


You use the API-Demo for help. There is a really good example of ExpandableListViews

Here the link

like image 26
dudeldidadum Avatar answered Sep 30 '22 13:09

dudeldidadum