Reputation: 4414
I got a image ball which is to fall from above continuously on a time frame, the flow has to be continuous and the image should appear continuously as rain falling from above and at certain speed, what is the best way of doing this. what kind of animation would be helpful, Translate animation or using canvas..help me learn the usage of canvas in android.
How could i achieve this using canvas, any example would be helpful. thanks in advance.
Upvotes: 2
Views: 1052
Reputation: 14571
My suggestion is to take a look SurfaceView... As I have found previously SurfaceView gave me the freedom to do anything I wanted and avoid blocking the UI thread. As it has it's own thread, you can specify all kind of time frames and interactions. You can even calculate physics and collisions. HERE is a great tutorial for getting you started.
Upvotes: 1