Wednesday, January 19, 2011

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.

1 comment: