summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-04-29 19:24:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-04-29 19:24:47 +0000
commitf38475bc28fe5596e27d44cfad74d4efb537623c (patch)
treed51bbc563b4ea3a66b2324b8d303bd78c146d8d9 /core/java/android
parent76b81c722135f496935dd270e7c5989f8b9472e3 (diff)
parent9103e4f748b3950ecfe3c3f6171c6b404ee8ae0d (diff)
Merge "Add Z property to View"
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/View.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 76becda45961..85e3b3d33a50 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -18864,6 +18864,22 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
};
/**
+ * A Property wrapper around the <code>z</code> functionality handled by the
+ * {@link View#setZ(float)} and {@link View#getZ()} methods.
+ */
+ public static final Property<View, Float> Z = new FloatProperty<View>("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 <code>rotation</code> functionality handled by the
* {@link View#setRotation(float)} and {@link View#getRotation()} methods.
*/