Android 1.6 setZOrderOnTop alternative

setZOrderOnTop was introduced with the Android 5 API level. Is this a convenient method for functionality that existed in earlier API levels? If so, how do I get started creating the same effect on Android 1.6?

Some background information:
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 successful, GLSurfaceView is displayed and displayed correctly, but transparent pixels are displayed completely black. I assume that the default behavior of GLSurfaceView is the cause of my problem:

Surface Z is ordered so that it is outside the window holding SurfaceView; SurfaceView punches a hole in its window so that its surface displays.

+4
source share
1 answer

AFAIK, there is no way to change ZOrder SurfaceView (in previous versions).

Since this requires access to the window in which SurfaceView is located, and there is no way to get a link to this window.

+1
source

Source: https://habr.com/ru/post/1343752/


All Articles