Layout bar status bar
I have a problem with the following code:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
This works fine on my emulator. The status bar disappears and the empty space is filled with content. However, on my Nexus One, this sometimes works and sometimes the empty space is left blank / black.
Any idea why this is happening?
I've tried to counteract this, but my naive approach hasn't been fruitful:
handler.postDelayed(new Runnable() {
@Override
public void run() {
v.getRootView().invalidate();
v.getRootView().requestLayout();
v.getRootView().forceLayout();
}
}, 800);
}
I've tried these things from above separately, in sync and delayed (to wait for the hide animation to finish first).
+2
a source to share