简体   繁体   中英

How do I hide the action bar icon in Android using a theme?

While I do know that you can hide the icon in the action bar by using setDisplayUseLogoEnabled, this takes a while and will result in the icon flashing for a second. Is there a way to avoid this by using themes or any other solution?

尝试使用getActionBar()。setDisplayOptions(ActionBar.DISPLAY_USE_LOGO)

assuming you're after a full screen view, try looking at the

WindowManager.LayoutParams.FLAG_FULLSCREEN

flag in the Window class

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