Now I've found that if I wrap the ImageView in a RelativeLayout and
perform the animations on the RelativeLayout instead, the
AlphaAnimation works again.

Bug filed here:
http://code.google.com/p/android/issues/detail?id=5589

Karl

On Dec 21, 4:13 pm, kostmo <[email protected]> wrote:
> I have been applying a simultaneous rotate and alpha animation to an
> ImageView using AnimationSet.  It was working fine when I set a Bitmap
> as the image with Image.setImageBitmap(my_bitmap).
>
> I then extended the Drawable class with my own drawing routine.  In my
> custom drawable I do some porter-duff compositing on the bitmap i was
> using earlier.  I set the image with Image.setImageDrawable( new
> MyCustomDrawable( my_bitmap ) ) Now my animation rotates but no longer
> performs the alpha transition!  What's wrong?
>
> One of the things I have tried is returning different values from
> getOpacity() in my Drawable. None of PixelFormat.TRANSLUCENT,
> PixelFormat.TRANSPARENT, PixelFormat.OPAQUE, or PixelFormat.UNKNOWN
> work.

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

Reply via email to