开发者

android spinner is showing hidden notification bar

开发者 https://www.devze.com 2023-02-06 10:48 出处:网络
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

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

0

精彩评论

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