You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I narrowed it down to: GlideBitmapDrawable.destRect = 0,0 - 0,0 on every draw and that's because in the current instance applyGravity has never been true.
ImageView only sets the bounds of the Drawable once, when it receives the Drawable hence applyGravity is set only once. However when the above mentioned setters are called on ImageView it mutates the drawable which clones the the state, but that doesn't include bounds.
BitmapDrawable works around this (and works) by cloning only the state and returning this.
The above in code (I removed the uninteresting parts):
The text was updated successfully, but these errors were encountered:
TWiStErRob
changed the title
Image disappears after setAlpha/setColorFilter on ImageView
Image disappears after setAlpha/setColorFilter on ImageView containing GlideBitmapDrawable
Sep 5, 2014
I narrowed it down to:
GlideBitmapDrawable.destRect
= 0,0 - 0,0 on every draw and that's because in the current instanceapplyGravity
has never been true.ImageView
only sets the bounds of theDrawable
once, when it receives theDrawable
henceapplyGravity
is set only once. However when the above mentioned setters are called onImageView
itmutate
s the drawable which clones the the state, but that doesn't include bounds.BitmapDrawable
works around this (and works) by cloning only the state and returningthis
.The above in code (I removed the uninteresting parts):
The text was updated successfully, but these errors were encountered: