Remove application icon and title from Honeycomb action bar

后端 未结 8 1996
北恋
北恋 2020-11-27 12:10

How can I remove the application icon & title which comes by default in an action bar?

There is a similar question here: Can i hide the App Icon from the Action

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 12:26

    Call setDisplayShowHomeEnabled() and setDisplayShowTitleEnabled() on ActionBar, which you get via a call to getActionBar().

提交回复
热议问题