| Start |
|---|
| SurfaceView with drawing thread This example describes how to create a SurfaceView with a dedicated drawing thread. This implementation also handles edge cases such as manufacture specific issues as well as starting/stopping the thread to save cpu time. This layout only contains the custom SurfaceView and maximizes it to the screen size. The activity which uses the SurfaceView is responsible for starting and stopping the drawing thread. This approach saves battery as the drawing is stopped as soon as the activity gets in the background. RemarksIt's important to understand the basic concept of the surface view before using:
Deadlocks can easily occur if the |
Read Article
https://develop.horje.com/learn/1434/reference