Android TranslateAnimation resets after animation

后端 未结 6 1358
灰色年华
灰色年华 2020-12-02 10:13

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

6条回答
  •  半阙折子戏
    2020-12-02 10:55

    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.

提交回复
热议问题