I have a expand more icon on linearLayout
in expandable recycler view
I want when click on linearLayout is clicked layout will expand and this icon will rotate with animation in 180 degrees like below-
here is my action code:
rotationAngle = rotationAngle == 0 ? 180 : 0;
expandArrow.animate().rotation(rotationAngle).setDuration(500).start();
where rotationalAngle=0;
is declared globally.
Can you find me a proper solution?