Further to this, I tried build target on ICS, same visual behavior. The
Surface view appears dimmed, as if it has been given the same dimming
effect as the background behind the dialog.

Is GlSurfaceView not supported in Dialogs? Nothing in the docs about that
that I can see.
On Feb 13, 2012 11:33 PM, "James Webster" <duskjock...@gmail.com> wrote:

> I have a GLSurfaceView working fine as a Live Wallpaper and as a custom
> view in an activity.
>
> When I try to use it as a custom view in an AlertDialog, the
> GLSurfaceView does not display correctly, there are some visual problems
> (see attached image for reference).
>
> Firstly the GLSurfaceView area within the dialog appears dimmed, as it has
> been given the same dimming affect as the activity behind, yet the rest of
> the dialog controls appear un-dimmed.
>
> Secondly, part of the activity behind (in this case a grid view) appears
> to completely overlap the dialog in the top left corner, the area
> overlapping seems to correspond to the size of a grid item. How can the
> background activity be shown over the foreground dialog? Most strange...
>
> Am I trying to do something stupid, and GLSurfaceView's are simply not
> supported in AlertDialogs?
>
> Incidentally, in my normal activity which does show the GLSurfaceView
> correctly, if I changed the theme to use the android:theme=
> "@android:style/Theme.Dialog"
>  then I also see the same dimming effect on the GLSurfaceView, which
> leads me to wonder if it is an issue with the dialog style itself.
>
> Is it expected that a GLSurfaceView should be displayed correctly within a
> dialog or Activity using a dialog theme? Has anyone done that before with
> no issues?
>
> Build target 2.1 and testing on 3.2 and 2.5.3, for what its worth.
>
> Regards,
> James
>
> Dusk Jockeys Android Apps
> http://duskjockeys.blogspot.com/
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to