android - View and SurfaceView, which one is better? -


this question has answer here:

what difference between view , surfaceview? 1 should used getting better , fast results? why surfaceholder used in surfaceview?

a surfaceview behaves view.

if need draw static component (such textviews) should use view.

a surfaceview must used if need draw view several times (such in video player, game, animation , on), surfaceholder can draw view in off-screen canvas , post drawn in surfaceview (also called double-buffering) it's usefull if want draw in thread.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -