Android spinner shows hidden notification bar

In my application, I make the application fullscreen. This is where the title bar and notification bar hide. But when I click on the counter, the hidden notification bar becomes visible in a few seconds. This does not happen with all spinners in my application. But where I use the array generated by the loop in the spinner adapter, this only happens in this case. I found out that this is a known bug in android. I also use the following style in spinner to resolve it.

In my application, I make the application fullscreen. This is where the title bar and notification bar hide. But when I click on the counter, the hidden notification bar becomes visible in a few seconds. This does not happen with all spinners in my application. But where I use the array generated by the loop in the spinner adapter, this only happens in this case. I found out that this is a known bug in android. I also use the following style in spinner to resolve it.

   true true @ zero

But still, I cannot solve this problem. If anyone has any solutions, please let me know.

+3
source share
2

setContentView():

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
+2

u requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(....)

0

Source: https://habr.com/ru/post/1786852/


All Articles