I make a diary for the Android application. There is a ListView in which a list of current tasks is displayed. But each task can have a subtask! It turns out ListView inside ListView . How to make such nesting?

PS TreeView and similar already tried, do not fit the task. Are there any other options?

  • one
    At least you would describe what the TreeView doesn’t suit you, but according to the description of the problem, you need it. - xkor
  • 3
    ExpandableListView does not suit you? - Djangorussia
  • 3
    Such a task, as a rule, is solved by a list in which a click on an item leads to a transition to another list. The list in the list will not work due to scrolling conflicts. - pavlofff
  • I understand that you need to implement Master / Detail Flow. If you use the android studio, then there is even a template. - Andrey E

1 answer 1

In order to avoid scrolling conflicts, use the RecyclerView UI pattern, in which each ListView element