简体   繁体   中英

How to get Surface of SurfaceView

How do you get the surface used by a SurfaceView in android? I have looked at the the documentation, but there is no method that returns a surface.

the answer is to use surfaceView.getSurfaceHolder(),and do surface.Holder.getSurface()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM