am c011558a: Merge "Add Z property to View"

* commit 'c011558a90329731e87d3eaf25af15b452001c4e':
  Add Z property to View
This commit is contained in:
Chris Craik
2014-04-29 19:29:16 +00:00
committed by Android Git Automerger
2 changed files with 17 additions and 0 deletions

View File

@@ -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 {

View File

@@ -18863,6 +18863,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.