ribot / easy-adapter

[DEPRECATED] Easy Adapters library for Android
http://ribot.github.io
Apache License 2.0
421 stars 50 forks source link

Custom Item Animation #40

Open MFlisar opened 9 years ago

MFlisar commented 9 years ago

I want to implement a button press and release animation. Therefore, I add the animations in onSetListeners.

I call clearAnimation in onBindView but still I have problems. The views sometimes stay on top of the RecyclerView and then the stay there forever. I think this comes from the RecyclerView animation handling. I'm really not sure how to solve that, but maybe public boolean onFailedToRecycleView (VH holder) is the place to call clearAnimations on the view instead of the onBind. But I just can't override this function from the BaseEasyRecyclerAdapter as the ViewHolder is not public.

Can I somehow do what I want? Maybe you even know better where the problem comes from and have some tipp for me?