(1) I have an issue with the following code:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
On my emulator this seems to work fine. The status bar disappears and the
empty space is filled with the content view. However on my Nexus One this
sometimes works and sometimes the empty space remains empty/black.
Any idea why this happens?
I tried to counteract this, but my naive approach wasn't fruitful:
handler.postDelayed(new Runnable() {
@Override
public void run() {
v.getRootView().invalidate();
v.getRootView().requestLayout();
v.getRootView().forceLayout();
}
}, 800);
I tried those things from above separately, synchronously and delayed.
(2)
Also I wanted to check if I can remove the status bar's animation or tap
into that with my own animation. To do that I tried to find the status bar.
But using Activity.getWindow().getDecorView() and View.getRootView() both
returned the same View, but it doesn't have the status bar as a child:
[image: Screen shot 2010-05-12 at 2.02.44 PM.png]
That's also what the status bar shows. My content starts with the NO_ID
container, but above that there is no status bar.
What's up with that? Is it hidden from ordinary apps? Could I still tap into
its animation?
Cheers,
Mariano
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en<<Screen shot 2010-05-12 at 2.02.44 PM.png>>

