Always did hide sub-lists using ExpandableListView.

Is it possible to do the same with standard tools in RecyclerView? Or is it better to use the good old ListView?

If so, how?

  • It is possible, but there is no such class yet; There are libraries that add a class absolutely by analogy, like ExpandableListView. They work fine, that's what I found right away bignerdranch.com/blog/expand-a-recyclerview-in-four-steps ibid gitHub link - Shwarz Andrei
  • @ShwarzAndrei, and how do you think it is not better to use the proven ExpandableListView? - Maybe_V
  • @ShwarzAndrei, or does RecyclerView have any advantages over ListView? - Maybe_V
  • one
    My personal opinion, I would use the RecyclerView library. I used it once, but it worked very stably. I liked it, and more ... I loaded quite complex content with animation in my case, there the list was not at all appropriate. - Shwarz Andrei
  • @ShwarzAndrei, and in ListView you can implement, for example, dragging items? Or is this possible in RecyclerView? - Maybe_V

0