Add doc for View.getElevation()

Change-Id: I5a843969fa03db6bb0faef80962c1256c64aa450
This commit is contained in:
Chris Craik
2014-05-28 17:21:35 -07:00
parent faecafce62
commit 5985dfbf14

View File

@@ -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
*/