Tuesday, July 12, 2011

Re: [android-developers] "Lights Out" mode

Nothing leaps to mind as being a problem. This sample project
successfully goes into lights-out mode via an options menu item:

https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/FeedFragments

(see lightsOut() method in AbstractFeedsFragment)

Make sure your targetSdkVersion is 11 (or higher).

On Tue, Jul 12, 2011 at 5:54 PM, Mark <mbuster@bitwisecontrols.com> wrote:
> 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
>

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

--
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