본문 바로가기

Work

FULL_SCREEN 화면에서 StatusBar 나타나는 현상

화면 Rotation 후 Layer Resizing 되면서 StatusBar가 Hide되어야 함에도 불구하고 나타나는 현상.

 

원인 분석 중, Native 주석 중 Dianne Hackborn이 쓴 다음 부분이 어떤 의미인지 거론되고 있다.

=======================================================

WindowManagerService.java Line 8586

=======================================================

if (w.mSurface != null) {

                    // XXX NOTE: The logic here could be improved.  We have

                    // the decision about whether to resize a window separated

                    // from whether to hide the surface.  This can cause us to

                    // resize a surface even if we are going to hide it.  You

                    // can see this by (1) holding device in landscape mode on

                    // home screen; (2) tapping browser icon (device will rotate

                    // to landscape; (3) tap home.  The wallpaper will be resized

                    // in step 2 but then immediately hidden, causing us to

                    // have to resize and then redraw it again in step 3.  It

                    // would be nice to figure out how to avoid this, but it is

                    // difficult because we do need to resize surfaces in some

                    // cases while they are hidden such as when first showing a

                    // window.

========================================================

'Work' 카테고리의 다른 글

android Preference xml attributes  (0) 2012.04.30
Summary of my work experience  (0) 2012.04.06
FLAG_ACTIVITY_XXX  (0) 2012.04.03
SGP IT corps  (0) 2012.01.02
How about some Android graphics true facts?  (0) 2011.12.05