Nande kore
Nande kore

Reputation: 784

Animation on ImageView width changed

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

Answers (1)

Justin Vartanian
Justin Vartanian

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

Related Questions