Hello,

It seams to me that a bug was fixed between android 2.0.1 and 2.1
about TransitionDrawable (or maybe ImageView).

When using TransitionDrawable in a ListView (with convert view
mechanism) in android 2.0.1 and below, I can't see the Transition if I
scroll rapidly to the end of the list, and then go back to the middle
(even through I'm calling startTransition). Note that my
TransitionDrawable is set as the image of an ImageView.
(Tested on emulators from 1.6 to 2.1, and on real devices : G2 with
1.5, G2 with 1.6 and Nexuos One with 2.1)

But with android 2.1, the bug magically disappeared ! I'm quite happy
but I still want backward compatibility...

So is there anyone on the android team a bit less busy than the others
who could run a diff on TransitionDrawable and ImageView between 2.01
and 2.1 and tell us what's going on ? :)

Of course the change could have occured on LayerDrawable or other
parent's classes as well...

Thanks,

Fabien

PS : here's part of my code

                    Drawable drawableOld = this.getDrawable();
                    Drawable drawableNew = new BitmapDrawable
(bitmap);
                    Drawable[] layers = {drawableOld, drawableNew};
                    TransitionDrawable transitionDrawable = new
TransitionDrawable(layers);
                    transitionDrawable.setCrossFadeEnabled(true);
                    setImageDrawable(transitionDrawable);
                    transitionDrawable.startTransition
(TRANSITION_DURATION);

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to