Background not visible in surface view

匿名 (未验证) 提交于 2019-12-03 00:59:01

问题:

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.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!