setZOrderOnTop was introduced with Android API level 5. Is this a convenience method for functionality that existed in the earlier API levels? If so, how would I go about creating the same effect on Android 1.6?
Some background info:
I am trying to get a GLSurfaceView with transparent pixels to render on top of the rest of my layout. So far I have not been succesful, the GLSurfaceView is displayed and renders properly, but pixel开发者_JAVA百科s that are transparent show up completely black. My guess is that the default GLSurfaceView behaviour is the cause of my problem:The surface is Z ordered so that it is behind the window holding its SurfaceView; the SurfaceView punches a hole in its window to allow its surface to be displayed.
AFAIK, there isn't any way of changing the ZOrder of SurfaceView (in previous versions).
Because this requires access to the Window in which the SurfaceView is placed and there isn't any way to get reference of that window.
精彩评论