0

I'm new to Android, and decided to practise with ExpandableListView.

The application is very basic ExpandableListView: taken from here: https://startandroid.ru/ru/uroki/vse-uroki-spiskom/86-urok-45-spisok-derevo-expandablelistview.html

I try to improve the animation of expanding and right after elvMain.setAdapter(adapter); (the last line of code) I applied the following code:

LayoutTransition layoutTransition = elvMain.getLayoutTransition();
layoutTransition.enableTransitionType(LayoutTransition.CHANGING);

The parent expands very nice and smooth, but after this first click, the whole view is not clickable, but... if I swipe just a bit on the buttons (in any direction), the parents and children respond to the swipe: the parents expand ok, or they become clickable after this swipe, but, again, only once.

What may hinder them from being clickable, and how this couold be worked around? Please share your experience or expertise. Thank you so much!

I have thoroughly investigated the problem, and tried a lot of things, but could not figure it out...

0 Answers0