I am implementing a piano tiles clone for an educational purposes. I've created 5 Views (that's the rows) which extends LinearLayout. Each one of them has 4 childs (that's the 4 tiles).
I am using an Handler for the animation, and change the Y property manually every "tick".
Problem is, the animation is somewhat twitching and not smooth.
I have two questions:
- Is that a good design? I know for example about
surfaceViewas alternative for drawing and animating but that seemed to me a bit complicated for my cause. - How would you animate those tiles? currently I use an
Handler(actually I was guided on another thread to useAnimation. What do you think the most feet to my case?
Thanks!