views:

508

answers:

1

I'm creating something like a SlideDrawer but with most customization, basically the thing is working but the animation is flickering at the end.

To further explain, I got an TranslateAnimation then after this animation it returns back to the original position, if i set setFillAfter then the buttons inside the layout stops working. If i listen to onAnimationEnd and set other's layout to View.GONE the layout fickers. Judging from it is that on animation end, the view goes back to original position before the View.GONE is called.

Any advice would be awesome. Thanks

A: 

Get rid of setFillAfter and just use View.GONE in onAnimationEnd(). See here for a sample custom View that implements a sliding panel using a TranslateAnimation.

CommonsWare