diff --git a/api/current.txt b/api/current.txt index 0b43fc342f1aa..c77661a21ab4c 100644 --- a/api/current.txt +++ b/api/current.txt @@ -30911,6 +30911,7 @@ package android.view { field protected static final int[] WINDOW_FOCUSED_STATE_SET; field public static final android.util.Property X; field public static final android.util.Property Y; + field public static final android.util.Property Z; } public static class View.AccessibilityDelegate { diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 76becda459612..85e3b3d33a50e 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -18863,6 +18863,22 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } }; + /** + * A Property wrapper around the z functionality handled by the + * {@link View#setZ(float)} and {@link View#getZ()} methods. + */ + public static final Property Z = new FloatProperty("z") { + @Override + public void setValue(View object, float value) { + object.setZ(value); + } + + @Override + public Float get(View object) { + return object.getZ(); + } + }; + /** * A Property wrapper around the rotation functionality handled by the * {@link View#setRotation(float)} and {@link View#getRotation()} methods.