Android Studio, Trying to hide TabLayout, StatusBar, SupportActionBar and an unknown bar?

廉价感情. 提交于 2019-12-01 12:23:10

问题


So at the click of a button I want to hide all bars on top of screen, to disappear. At another click of button I want them all to reappear again. I successfully did that and have the following bars to hide on button click: Status Bar, TabLayout tab fragments, Support Action Bar. Here's what I have.

When I click my "Start" button ^, all these bars on top, hide. But only 1 is left ...

I tried hiding the "getActionBar" but that bar that's left is not it.

According to my styles.xml when I change the color of the 'ColorPrimaryDark', that's the bar that's left:

I tried hiding PopupOverlay and AppBarOverlay, and get nothing.

Here's my XML file for this:

So what can be this mysterious bar that's left? I'm not asking for code, I'm only simply trying to find out if anyone knows what it can be that's left?

来源:https://stackoverflow.com/questions/46737013/android-studio-trying-to-hide-tablayout-statusbar-supportactionbar-and-an-unk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!