简体   繁体   中英

How to remove Application icon from Action Bar in Android?

I am using Action bar with Tabs. I want to hide app icon from action bar. I use the below code, but action bar is showing below Tabs. Both are not useful for me.

Any one help me!

 actionBar.setDisplayUseLogoEnabled(false);

and

 actionBar.setDisplayShowHomeEnabled(false);

actionBar.setDisplayUseLogoEnabled(false); should do it.

actionBar.setDisplayShowTitleEnabled(false) 

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM