Difference between SurfaceView and View in Android

The main difference between SurfaceView and View is,

- Views are drawn in UI thread and surfaceView are drawn in a seperate thread. So if rendering takes long time, its better to use SurfaceView. Then for animations also, its better to use surfaceView.

- SurfaceView uses more resoources than View, so use it when you really want.

Comments

Post a Comment

Popular posts from this blog

AlarmManager and Notification in Android

Swipe Action and ViewFlipper in Android