0

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. This is what I am looking for

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

2 Answers2

0

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.

trocchietto
  • 2,607
  • 2
  • 23
  • 36
0

you can use expandable recyclerview

eg Expandable recycler view

vinit
  • 39
  • 1
  • 11