Button On Top Of Surfaceview With Setzorderontop Set To True In Android
I have two surfaceviews in an app and one surfaceview needs to overlap the other surfaceview. For example, say there are two surfaceviews SurfaceView A and SurfaceView B. B needs t
Solution 1:
I was able to resolve the issue by using setZOrderMediaOverlay(true)
instead of setZOrderOnTop
.
The method setZOrderOnTop
if set to true will always be on top of the window. So, in order to have overlay view over surface view setZOrderMediaOverlay
should be used.
For more information, refer setZOrderMediaOverlay document here.
Post a Comment for "Button On Top Of Surfaceview With Setzorderontop Set To True In Android"