Is there a way to disable ActionBar's show/hide animation?

前端 未结 3 492
一整个雨季
一整个雨季 2020-12-17 18:06

I\'ve seen this question:

Changing the ActionBar hide animation?

But it doesn\'t say whether it\'s possible to disable animation altogether.

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-17 18:53

    You can now do this,

    getSupportActionBar().setShowHideAnimationEnabled(false);
    

提交回复
热议问题