Hi All,
It seems that the emulator is treating GLSurfaceView renderered output the
same as the background wallpaper when the backgroundDimEnabled style option
is set, dimming them both when it should, if I understand correctly, only
dim the wallpaper.
I have a RelativeLayout, whose first child extends GLSurfaceView, that gets
expanded in an Activity with the following style:
<style name="Theme.loco5" parent="@android:style/Theme.
Wallpaper.NoTitleBar">
<item name="android:backgroundDimEnabled">true</item>
</style>
I used to omit the backgroundDimEnabled and set the opengl background clear
color to 0x8000 to dim the wallpaper background, which works well, but I
didn't like the hard edge between the faded activity and the unfaded
wallpaper I would see when the activity slides into and out of view.
The problem is that when I set the opengl clear color to all 0 and add the
"android:backgroundDimEnabled" the foreground native ui elements are
displayed correctly but the opengl output is dimmed along with the
wallpaper. If I go back and change backgroundDimEnabled to false or remove
it, the opengl output is at full brightness, but if I ever turn it back on,
rendered output is dimmed. The only difference is that style property.
I'm hoping someone knows if this behavior is specific to the emulator, every
version from 2.1-3.0.
I haven't tried yet on physical hardware, maybe someone has an idea?
Thanks
David
--
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