Snackbar slide animation causes the floating action button to jump unexpectedly

倖福魔咒の 提交于 2020-02-04 05:21:07

问题


I have a floating action button in my activity. It should move up a little bit when a snackbar appears. but when I change my snackbar animation to slide using the code:

pressAgainToExitSnackBar.setAnimationMode(BaseTransientBottomBar.ANIMATION_MODE_SLIDE);

The floating action button animation glitches for one frame or so. Like this:

What am I doing wrong?

PS: I am using this version of google material design library:

implementation 'com.google.android.material:material:1.2.0-alpha03'

来源:https://stackoverflow.com/questions/59468843/snackbar-slide-animation-causes-the-floating-action-button-to-jump-unexpectedly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!