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
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.
You use the API-Demo for help. There is a really good example of ExpandableListViews
Here the link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.