Expandable list item on Android

I am trying to make a list item extensible. Basically, I want every element of the list to have a button that, when clicked on, expands this element of the list to show more information.

Is this possible on Android? if so, how would I do that?

thanks

Edit: To clarify, ideally I would like the current list item to grow to show more information

+7
source share
2 answers

Your simplest solution will probably be an ExpandableListView .

But you can also implement something yourself when the button in each ListView element hides and hides the View under a regular element.

+4
source

You are using the API Demo for help. There is a really good example of ExpandableListViews

Here is the link

+1
source

All Articles