Background not visible in surface view
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created a view which extends surface view when i am trying to add the custom view to frame layout , frame layout back ground is not visible.. please provide me a solution. 回答1: You have to render the background by yourself within the surface view. As the documentation says: the SurfaceView punches a hole in its window to allow its surface to be displayed. So nothing that is placed behind a surface view would be rendered. 文章来源: Background not visible in surface view