android - View and SurfaceView, which one is better? -
this question has answer here:
- difference between surfaceview , view? 7 answers
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
Post a Comment