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 behind surfaceview background black.
  • override view.ondraw , call invalidate(): works, invalidate isn't reliable way of getting redraw happen soon, motion jerky.
  • animation framework: testing translateanimation, seems bit smoother using ondraw(), animations designed run specific duration , want draw indefinitely.

anybody know tricks make 1 of these work properly, or different?


Comments

Popular posts from this blog

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -