diff options
| author | 2014-05-28 17:21:35 -0700 | |
|---|---|---|
| committer | 2014-06-06 13:40:22 -0700 | |
| commit | 5985dfbf1458f487c7f162a486874467997e699c (patch) | |
| tree | fa23c5bafde1b40e571f3b83dfdee5f04eb3ff7e | |
| parent | faecafce62ca39a7693669f7c9eabf2d71c633cf (diff) | |
Add doc for View.getElevation()
Change-Id: I5a843969fa03db6bb0faef80962c1256c64aa450
| -rw-r--r-- | core/java/android/view/View.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 634ae609b01f..117fe8e9d6a0 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -10497,13 +10497,18 @@ public class View implements Drawable.Callback, KeyEvent.Callback, setTranslationZ(z - getElevation()); } + /** + * The base elevation of this view relative to its parent, in pixels. + * + * @return The base depth position of the view, in pixels. + */ @ViewDebug.ExportedProperty(category = "drawing") public float getElevation() { return mRenderNode.getElevation(); } /** - * Sets the base depth location of this view. + * Sets the base elevation of this view, in pixels. * * @attr ref android.R.styleable#View_elevation */ |