I am trying to implement animation in my RecyclerView as mentioned here
I have confusion to use this code as mentioned in post.
@Override
public void onViewDetachedFromWindow(final RecyclerView.ViewHolder holder)
{
((CustomViewHolder)holder).clearAnimation();
}
Its giving me error like this and I am not able to solve it
I have also confusion in add
public void clearAnimation()
{
mRootLayout.clearAnimation();
}
How should I add and use it ?
Thanks