implement VectorDrawable, by loading tmp SVG with gdkpixbuf

This won't work for Apps using VectorDrawableCompat
This commit is contained in:
Julian Winkler
2024-03-24 15:41:39 +01:00
parent 26b6da2c9c
commit f4a0191b1c
4 changed files with 62 additions and 1 deletions

View File

@@ -134,6 +134,10 @@ public class Drawable {
} else if ("ripple".equals(parser.getName())) {
// FIXME: the non-pressed state of RippleDrawable should be equivalent to this
return new ColorDrawable(0);
} else if ("vector".equals(parser.getName())) {
VectorDrawable drawable = new VectorDrawable();
drawable.inflate(resources, parser, parser, null);
return drawable;
}
return null;
}