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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -