I need to know how to move a image from one location to another location smoothly. In some tutorials they have asked to move it pixel by pixel calling invalidate() function after waiting for a small time duration.
But isnt there any other way to do it.?
But i need to animate it dynamically. Think that i need to move some image to the location where person touches on screen. I need it to be do using Java, not from XML
You can create a animation on XML, load it and use on your view.
Consider it’s the file hide.xml (on the res/anim folder)
Then in your Activity you load it and apply to the View you want to translate.