Hello. Tell me how to implement drop-down text in android, as shown in the image enter image description here

2 answers 2

I would advise you to use RecyclerView, it was created as a ListView enhancement. It is a more flexible control for handling “data lists” that follow the delegation model of problems and leaves only one task behind it — processing items.

Here there is a library, there they have examples.

RecyclerView with lists

If you are interested, I can lay out an example. My example of use

  • And why does he RecyclerView sculpt RecyclerView for two elements? - Eugene Krivenja
  • the image shows an example of what I need to implement; there will be at least 10 items on the real list. - Nikita
  • Well, then the library is exactly suitable, and you can attach various objects to it. That is, for one item one drop-down text, for another with a button, etc. - Vitaly Robinovskiy

There is an option to use ExpandableList :)