diff options
author | Chris Craik <ccraik@google.com> | 2014-04-25 18:34:11 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-04-28 14:33:33 -0700 |
commit | cc39e16cb98855f35079941b5e7e6eac2b7bc388 (patch) | |
tree | f37cb0ce9da11a018446adfb83c756f5e76e77f1 /core/java/android/view/RenderNode.java | |
parent | 802667b20b2170ddce94d70a022b68b64b9a7493 (diff) | |
download | frameworks_base-cc39e16cb98855f35079941b5e7e6eac2b7bc388.zip frameworks_base-cc39e16cb98855f35079941b5e7e6eac2b7bc388.tar.gz frameworks_base-cc39e16cb98855f35079941b5e7e6eac2b7bc388.tar.bz2 |
Add elevation, Z properties to View
Change-Id: I3dd3b683a66e248a0fdf2ca69d1e962615b0daf9
Diffstat (limited to 'core/java/android/view/RenderNode.java')
-rw-r--r-- | core/java/android/view/RenderNode.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/view/RenderNode.java b/core/java/android/view/RenderNode.java index 30e4281..3dc09c4 100644 --- a/core/java/android/view/RenderNode.java +++ b/core/java/android/view/RenderNode.java @@ -443,6 +443,14 @@ public class RenderNode { return nHasOverlappingRendering(mNativeRenderNode); } + public void setElevation(float lift) { + nSetElevation(mNativeRenderNode, lift); + } + + public float getElevation() { + return nGetElevation(mNativeRenderNode); + } + /** * Sets the translation value for the display list on the X axis. * @@ -854,6 +862,7 @@ public class RenderNode { private static native void nSetAlpha(long renderNode, float alpha); private static native void nSetHasOverlappingRendering(long renderNode, boolean hasOverlappingRendering); + private static native void nSetElevation(long renderNode, float lift); private static native void nSetTranslationX(long renderNode, float translationX); private static native void nSetTranslationY(long renderNode, float translationY); private static native void nSetTranslationZ(long renderNode, float translationZ); @@ -874,6 +883,7 @@ public class RenderNode { private static native float nGetCameraDistance(long renderNode); private static native float nGetScaleX(long renderNode); private static native float nGetScaleY(long renderNode); + private static native float nGetElevation(long renderNode); private static native float nGetTranslationX(long renderNode); private static native float nGetTranslationY(long renderNode); private static native float nGetTranslationZ(long renderNode); |