setWillNotCacheDrawing true for SimpleImageView
This commit is contained in:
1 parent
2c151cafe9
commit
c1af94afa0
1 file changed
+3
@@ -46,6 +46,9 @@ public class SimpleImageView extends View implements Drawable.Callback {
|
||||
final TypedArray a = context.obtainStyledAttributes(attrs, LAYOUT_ATTRS);
|
||||
setDrawable(a.getDrawable(0));
|
||||
a.recycle();
|
||||
|
||||
// Mostly drawable is VectorDrawable, it has cache already
|
||||
setWillNotCacheDrawing(true);
|
||||
}
|
||||
|
||||
public void setDrawable(@DrawableRes int resId) {
|
||||
|
||||
Reference in new issue
Block a user