Many suggested that I should use:
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
actionBar.setHomeButtonEnabled(false);
actionBar.setDisplayShowTitleEnabled(false);
and it shows me an actionbar with no title but with the application logo. It was also suggested that I hide the logo and, when I did, the actionbar appeared empty and didn't hide.
duplicate question , see :
Android: Hide ActionBar, keep Tabs ,
Only display tabs in action bar
Android: How do you hide Tabs in the ActionBar?
You can hide the action bar at runtime by calling hide(). For example:
ActionBar actionBar = getSupportActionBar();
actionBar.hide();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.