ActionBarCompat: Hide ActionBar before activity is created (bug?)

后端 未结 4 831
故里飘歌
故里飘歌 2020-12-15 07:06

So I was using the ActionBarSherlock and decided to switch to the new ActionBarCompat. With ABS, hiding the ActionBar was possible using the way described in this post: How

4条回答
  •  星月不相逢
    2020-12-15 07:45

    I don`t know if I understood exactly your question, but here I go.

    I think that you need to use both: getSupportActionBar() to old versions and getActionBar() to newest versions. It`s not a bug.

    You need to verify the device version before use the methods.

    I hope I was able to help.

提交回复
热议问题