Smooth animation on top of regular Android View -
i have app regular layout of buttons , widgets. on top of i'd draw animated sparks , particles , whatnot going on in response events, i've got in framelayout
view
on top draw animations. problem can't work out way of getting smooth movement out of it. i've tried few options:
surfaceview
: because of way takes on screen, can't see behindsurfaceview
background black.- override
view.ondraw
, callinvalidate()
: works, invalidate isn't reliable way of getting redraw happen soon, motion jerky. animation
framework: testingtranslateanimation
, seems bit smoother usingondraw()
, animations designed run specific duration , want draw indefinitely.
anybody know tricks make 1 of these work properly, or different?
Comments
Post a Comment