Thursday, December 17, 2015

Selecting native animation view

When creating an Android native (non-OpenGL) animation on a view, there are few options:
  • SurfaceView
  • TextureView (Android 4.0+)
  • View
While in Android 2.x SurfaceView was the best way, things changed. I'll skip to the bottom line: to my opinion as of Android 6.0 the best was is to override View. The reason is that both SurfaceView & TextureView do not support Android's hardware acceleration.

Hardware accelerated View is over x4 faster than SurfaceView & TextureView.

No comments: