On this page
Extending SurfaceView
Overview
SurfaceView provides a dedicated drawing surface embedded inside of a view hierarchy. You can control the format of this surface and, if you like, its size; the SurfaceView takes care of placing the surface at the correct location on the screen.
One of the purposes of this class is to provide a surface in which a secondary thread can render into the screen. If you need to perform complex drawing operations many times a second, you may want to offload the drawing off the UIThread and that is the purpose of this view.
Usage
A SurfaceView Demo for rocket burst and page curl by Infinut
Droidcon NYC 2015 talk that explains the above demo step-by-step
References
- https://developer.android.com/reference/android/view/SurfaceView
- https://source.android.com/docs/core/graphics/arch-sv-glsv
- https://developer.android.com/reference/android/opengl/GLSurfaceView
- http://javandroidevelop.blogspot.com/2012/09/all-about-surfaceview-android-lessons.html
- https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/PlayMovieSurfaceActivity.java
- https://gist.github.com/ErikHellman/5840101
- https://stackoverflow.com/questions/12273976/camera-tutorial-for-android-using-surfaceview