I'am trying to achieve expand and collapse animation in RecyclerView
and tried this solution but it's have a lot of problems and i can't use it anymore, Also o tried a lot of solutions but it's not working as requested from customer like scale the view using this to collapse the view:
view.animate().scaleY(1 / item.getHeight()).setDuration(300).withEndAction(new Runnable() {
@Override
public void run() {
item.setVisibility(View.GONE);
}
});
I want the animation exactly like this:
Is there any way to do this?