开发者

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

开发者 https://www.devze.com 2023-03-13 20:47 出处:网络
While I do know that you can hide the icon in the action bar by using setDisplayUseLogoEnabled, this ta开发者_JAVA技巧kes a while and will result in the icon flashing for a second. Is there a way to a

While I do know that you can hide the icon in the action bar by using setDisplayUseLogoEnabled, this ta开发者_JAVA技巧kes 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?


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

WindowManager.LayoutParams.FLAG_FULLSCREEN

flag in the Window class


Try using getActionBar().setDisplayOptions(ActionBar.DISPLAY_USE_LOGO)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号