api-impl: add ClipDrawable from AOSP

taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
This commit is contained in:
Mis012
2025-02-15 21:22:17 +01:00
parent bf79a77993
commit df03617f13
3 changed files with 800 additions and 6 deletions

View File

@@ -268,6 +268,14 @@ public class Drawable {
return new Drawable(paintable);
}
public static Drawable createFromPath(String path) {
if (path == null)
return null;
long paintable = native_paintable_from_path(path);
return new Drawable(paintable);
}
protected boolean onStateChange(int[] stateSet) {
return false;
}