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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -