VideoView on top of SurfaceView

前端 未结 1 1250
挽巷
挽巷 2021-01-03 07:29

I try to show a VideoView on top of a SurfaceView. But it isn\'t visible but reacts on clicks (MediaController appears and the sound plays). The vi

相关标签:
1条回答
  • 2021-01-03 07:44

    I don't think that you can have overlapping SurfaceViews, according to this thread answered by an Android framework engineer:

    Sorry, you can't do this -- because surface views are very special and not really views (the surface is a separate window Z-ordered with your own), their Z-ordering does not match your views. A surface view is a big, heavy object; you are not intended to treat SurfaceView like a regular view in this way.

    0 讨论(0)
提交回复
热议问题