[android-developers] Drawable.mutate().setAlpha() not working pre 2.2?
I have an ImageView and do this:
Drawable d = getResources().getDrawable(R.drawable.my_image);
d.mutate().setAlpha(50);
myImageView.setImageDrawable(d);
This works fine on 2.2 but on 1.6 and 2.1 (the only other ones I've
tested on) the alpha has not been changed.
Is this a bug or am I doing something wrong?
--
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