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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -