How Can we hide title bar while using action bar?

前端 未结 10 2021
闹比i
闹比i 2021-02-12 14:43

I\'m using ActionBarSherlock and I\'m trying to hide the title bar of my application but whenever I do that, I get a NullPointerException when accessing the A

10条回答
  •  遥遥无期
    2021-02-12 15:04

    I was searching for an answer for this. Found one solution.

    actionBar = getActionBar();
    actionBar.hide();
    

    The above snippet will remove the tab title and slider. Hope it helps.

提交回复
热议问题