Which is the name of the method/library which collapses/extends a list triggered by the user action?
Please see the image below to understand my use case.

- 37,901
- 21
- 84
- 115
-
Yes, thanks!..Such basic questions – May 28 '18 at 13:28
-
https://stackoverflow.com/q/6832164/1531971 – May 28 '18 at 14:48
2 Answers
As far I can see you have a List View with one Item, and on press you want to show a sublist. I guess you do not know Android terms and you are thinking from an abstract design point of view.
In more technical terms you need to expand a ListView when the user touches the item.
Here you can find a tutorial to use ExpandibleListVIew
Please consider that nowdays is really used in place of ListView a library called RecyclerView, and here and maybe even better this stack overflow post where you can find a valid method that explain your UX use case, without recurring to external libraries but capitalizing the method onBindViewHolder
, as allegedly recommended at a Google I/O official conference.
RecyclerView offers much more functionalities, animations and should be the best option to go if the app increases in complexity, namely a real life scenario.

- 2,607
- 2
- 23
- 36