how to put an image view on top of a surfaceview android -


i have surface view have set setzorderontop(true); when have recorded video on view, set display of media player view , set visibility of images on true can see images on surface view.

now when set mediaplayer.start() video plays images on surface view disappear, , aren't visible after explicitly set surfaceview setzorderontop(false); , visibility of images visible in oncompletion of media player. imageviews onclick enabled

please me solve this.

the view ui on 1 layer, surfaceview surface on different layer. can put surfaceview surface in front of or behind view elements, can't put between views, , can't change position once surface has been created:

note must set before surface view's containing window attached window manager.

you can solve on api 14+ sending video textureview instead. textureviews less efficient, can manipulated in layout other view.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -