Is it possible to draw any view inside bounded region inside GLSurfaceView or SurfaceView?
At the moment my GLSurfaceView is filled with Bitmap textures.
I want to achieve something like this
+---------------------------------+
| |
| GLSurfaceView |
| |
| +-------------+ |
| |WhateverView/| |
| | Layout/ | |
| |ViewGroup | |
| +-------------+ |
| |
+---------------------------------+
I’ve tried doing this with FrameLayout to draw the View on the top of the GLSurfaceview, but that is not what I’m trying to achieve.
Thanks.
I had a same issue. I used this tricks below.
Use
AbsoluteLayoutto overlapGLSurfaceViewand otherView.Set
GLSurfaceViewtransparent.Add a punching hole. do not render an overlapping region in
GLSurfaceView.OnTouchListenerthat is attached toGLSurfaceViewreturns false in the overlapping region to propagate events to other views.PS: Sorry for my poor english.