There is an ExpandableListView in which each parent (group) item has several child elements of the group (child).

Each child element (child) has an element on which OnTouchListener hung.

If you swipe one child item (causes animation and changes the visibility of an element in the layout of a child item), then scrolling through the list, then other items (even within the same group) will have the result of the animation.

Does anyone know how to deal with this?

  • one
    The question is not complete. Provide the adapter code. Most likely crap because of an improperly programmed adapter - BORSHEVIK
  • 3
    Yes, crap in the adapter. Thanks for the comment. The problem was that I forgot to reset the values ​​to their original state. It is necessary to put setVisiblity (View.GONE) in getView ( ). Read about how ListView works (like a ribbon spinning in a circle). I solved the problem. thanks again. - Djangorussia
  • 3
    You are one of those only people who, using the clue, solved the problem and did not wait until everything is done for you. More such progers - BORSHEVIK

1 answer 1

from the question author:

The problem was that I forgot to reset the values ​​to their original state.
It is necessary to put setVisiblity(View.GONE) in getView() setVisiblity(View.GONE) .

Read about how ListView works (like a ribbon spinning in a circle)

  • 2
    When you are in charge of another person, it is considered good to say the answer is general. - pavlofff