I have several ImageViews in a RelativeLayout.
When the user taps any of the ImageViews, I want the ImageView to be moved to a specified location using a subtle animation.
Eg; I have initially set margins for LayoutParams
associated with an ImageView
as layoutparams1.setMargins(90,70,0,0);
and I have then added it to the layout.
When the ImageView is tapped, I'd like its new location to be 200,200
, done with animation.
So, is it possible? if yes, then how?
Note that I have both RelativeLayout and all of its child ImageViews created programmatically.
And I'm new to Android development so an elaborative answer is expected.