Tuesday, July 12, 2011

[android-developers] "Lights Out" mode

I am trying (unsuccessfully thus far) to dim the system bar on
Honeycomb devices. My current layout contains a single WebView. The
following is called in my bundle's onCreate routine.

setContentView(R.layout.main);
mWebView = (WebView) findViewById(R.id.webview);
if (android.os.Build.VERSION.SDK_INT >=
android.os.Build.VERSION_CODES.HONEYCOMB){
mWebView.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
}

The function is getting called, but the system bar is never dimmed.
What am I missing here?
Thanks in advance.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment