android spinner is showing hidden notification bar
In my app i make the app fullscreen. Means android title bar and notification bar is hidden here. But when i click on the spinner the hidden notification bar gets visible for fraction of seconds. It is not happening with all the spinners in my app. But where i use a array,generated by a loop execution in the spinner adapter, it is only happening in that case. I have come to know that it is a known bug in android. I also use the following style in spinner to resolve it.
In my app i make the app fullscreen. Means android title bar and notification bar is hidden here. But when i click on the spinner the hidden notification bar gets visible for fraction of seconds. It is not happening with all the spinners in my app. But where i use a array,generated by a loop execution in the spinner adapter, it is only happening in that case. I have come to know that it is a known bug in android. I also use the following style in spinner to resolve it.
true true @null
But still i cant solve this problem.. If anyone has any solution pl开发者_如何转开发ease let me know.
add this line before setContentView():
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
Then u use requestWindowFeature(Window.FEATURE_NO_TITLE);
in activity and it must be before of the setContentView(....)
method
精彩评论