How to hide action bar for fragment?

前端 未结 9 1189
挽巷
挽巷 2021-01-31 08:17

How can I hide action bar for certain fragment? I have searched for the answer at stackoverflow, but I have only found a solution, which involves disabling action bar for main a

9条回答
  •  梦如初夏
    2021-01-31 08:57

    getActionBar().hide() or getSupportActionBar().hide() (if using ActionBarCompat v7 lib). Regards

提交回复
热议问题