CircularImageView icon indicating copy to clipboard operation
CircularImageView copied to clipboard

doesn't support TransitionDrawable

Open andaag opened this issue 9 years ago • 0 comments

The following causes a stackoverflow:

                    BitmapDrawable drawable = new BitmapDrawable(getResources(), response.getBitmap());
                    TransitionDrawable transition = new TransitionDrawable(new Drawable[]{drawable, getResources().getDrawable(R.drawable.standardimage)});
                    transition.setCrossFadeEnabled(true);
                    setImageDrawable(transition);
                    transition.startTransition(1000);

I suspect the reason is your conversion to Bitmaps, is this really needed? Would getIntrinsicWidth/height not be sufficient?

andaag avatar Aug 05 '14 11:08 andaag