diff options
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/view/View.java | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 0dce8d490f7c..949c1bf30df7 100644 --- a/api/current.txt +++ b/api/current.txt @@ -49074,6 +49074,7 @@ package android.view { method public float getTranslationX(); method public float getTranslationY(); method public float getTranslationZ(); + method public long getUniqueDrawingId(); method public int getVerticalFadingEdgeLength(); method public int getVerticalScrollbarPosition(); method public int getVerticalScrollbarWidth(); diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 2767505aece3..981a0df3ce6e 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -23545,6 +23545,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } /** + * Get the identifier used for this view by the drawing system. + * + * @see RenderNode#getUniqueId() + * @return A long that uniquely identifies this view's drawing component + */ + public long getUniqueDrawingId() { + return mRenderNode.getUniqueId(); + } + + /** * Returns this view's tag. * * @return the Object stored in this view as a tag, or {@code null} if not |