Reputation: 784
I'm changing width of ImageView programmatically , is there a way adding an animation into width change ?
First state, Width of ImageView 200dp Second state Width of ImageView 400dp
Upvotes: 2
Views: 2208
Reputation: 1149
Have a look at this answer: Resizing Layouts Programmatically As Animation. All you have to do is pass your view and the other parameters to the class.
Upvotes: 2