Monday, December 6, 2010

[android-developers] AnimationDrawable scaling

I have an ImageView that initially has a Bitmap Image:

<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
By default that imageview scales the bitmap to fill the width that is
what I want.

But the problem is that when I change the source of the ImageView to
an AnimationDrawable, that is build by several images of the same size
of the original, then animation isn't scaled at all and returns to the
original.

How can I do that scale the animation drawable in the same way that is
scaled the bitmap?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate