Cannot place GLSurfaceView over SurfaceView?
<p>My understanding is you cannot overlay two surfaceviews in Android, based on this discussion:</p>

<p><a href="https://groups.google.com/forum/?fromgroups=#!topic/android-developers/COffLpanlz0" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/android-developers/COffLpanlz0</a></p>

<p>Further evidence it this does not work:  <a href="http://stackoverflow.com/questions/5870535/glsurfaceview-surfaceview-overlap?rq=1">GLSurfaceView/SurfaceView overlap</a></p>

<p>However I would like to know if here is a workaround? Or if perhaps this has changed with Android 4.1?</p>

<p>The only suggestion from google framework engineer was shown below: Does anyone know how this would be done? Or if there are any other ways to achieve this?</p>

<p>" It's probably not the best way, but right now you simply can not have multiple overlapping   surface views in a window, so the only way to achieve this is to render the overlay in the main window.  Fyi, using a separate thread and postInvalidate() is extra work that is not needed, just call invalidate() from the main thread.  And you'll want to make sure that at least the part of your view hierarchy involved with drawing the overlay is as simply as possible (not deep and not a lot of views to iterate over) to reduce the overhead as much as possible."
- show quoted text -
hac...@android.com</p>
