diff options
author | Diego Perez <diegoperez@google.com> | 2015-10-07 12:33:44 +0100 |
---|---|---|
committer | Diego Perez <diegoperez@google.com> | 2015-10-07 17:04:26 +0100 |
commit | 081cebf52b19e848c07fb781b35fa1f96695c311 (patch) | |
tree | 2c2166e7c3a485d3dd0b2295ca36b0116fddfd06 /tools/layoutlib/create/src/com/android | |
parent | c6865806a4f76c44bc3cc55cff87cc85f0a48061 (diff) | |
download | frameworks_base-081cebf52b19e848c07fb781b35fa1f96695c311.zip frameworks_base-081cebf52b19e848c07fb781b35fa1f96695c311.tar.gz frameworks_base-081cebf52b19e848c07fb781b35fa1f96695c311.tar.bz2 |
Implement Path.approximate and add PathMeasure support
PathMeasure is needed to use the trimPath* properties in drawables.
These properties are used in the vector drawable for indeterminate
progress bars in Material so this is needed to be able to render them
correctly in the preview.
PathMeasure makes use of Path.approximate to calculate which segments to
paint.
Change-Id: Ic513f0a30a6aac0317f7c13cd75e9154c37405c8
Diffstat (limited to 'tools/layoutlib/create/src/com/android')
-rw-r--r-- | tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java b/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java index 484240f..9244310 100644 --- a/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java +++ b/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java @@ -157,7 +157,6 @@ public final class CreateInfo implements ICreateInfo { * The list of methods to rewrite as delegates. */ public final static String[] DELEGATE_METHODS = new String[] { - "android.animation.AnimatorInflater#loadAnimator", // TODO: remove when Path.approximate() is supported. "android.app.Fragment#instantiate", //(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)Landroid/app/Fragment;", "android.content.res.Resources$Theme#obtainStyledAttributes", "android.content.res.Resources$Theme#resolveAttribute", @@ -235,6 +234,7 @@ public final class CreateInfo implements ICreateInfo { "android.graphics.Path", "android.graphics.PathDashPathEffect", "android.graphics.PathEffect", + "android.graphics.PathMeasure", "android.graphics.PixelXorXfermode", "android.graphics.PorterDuffColorFilter", "android.graphics.PorterDuffXfermode", |