diff options
author | George Mount <mount@google.com> | 2015-07-06 14:55:08 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-06 14:55:08 +0000 |
commit | e61668cbe4d5e29439493e885ac9461173f261cd (patch) | |
tree | 4ebb2a6bf3dc48f84d7094a498b7c99fd4fe0f04 | |
parent | b2d9f043d844a55b920a94936035d1d5a425b264 (diff) | |
parent | 7fe86c4753e88058a7f1a1bf8d0302df9a64bd2e (diff) | |
download | frameworks_base-e61668cbe4d5e29439493e885ac9461173f261cd.zip frameworks_base-e61668cbe4d5e29439493e885ac9461173f261cd.tar.gz frameworks_base-e61668cbe4d5e29439493e885ac9461173f261cd.tar.bz2 |
am 7fe86c47: Merge "Fix docs for ViewAnimationUtils.createCircularReveal" into mnc-dev
* commit '7fe86c4753e88058a7f1a1bf8d0302df9a64bd2e':
Fix docs for ViewAnimationUtils.createCircularReveal
-rw-r--r-- | core/java/android/view/ViewAnimationUtils.java | 6 | ||||
-rw-r--r-- | docs/html/training/material/animations.jd | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/core/java/android/view/ViewAnimationUtils.java b/core/java/android/view/ViewAnimationUtils.java index d44df31..4c75935 100644 --- a/core/java/android/view/ViewAnimationUtils.java +++ b/core/java/android/view/ViewAnimationUtils.java @@ -43,8 +43,10 @@ public final class ViewAnimationUtils { * on thread responsiveness. * * @param view The View will be clipped to the animating circle. - * @param centerX The x coordinate of the center of the animating circle. - * @param centerY The y coordinate of the center of the animating circle. + * @param centerX The x coordinate of the center of the animating circle, relative to + * <code>view</code>. + * @param centerY The y coordinate of the center of the animating circle, relative to + * <code>view</code>. * @param startRadius The starting radius of the animating circle. * @param endRadius The ending radius of the animating circle. */ diff --git a/docs/html/training/material/animations.jd b/docs/html/training/material/animations.jd index 86e91a7..6f263db 100644 --- a/docs/html/training/material/animations.jd +++ b/docs/html/training/material/animations.jd @@ -81,8 +81,8 @@ reveal or hide a view.</p> View myView = findViewById(R.id.my_view); // get the center for the clipping circle -int cx = (myView.getLeft() + myView.getRight()) / 2; -int cy = (myView.getTop() + myView.getBottom()) / 2; +int cx = myView.getWidth() / 2; +int cy = myView.getHeight() / 2; // get the final radius for the clipping circle int finalRadius = Math.max(myView.getWidth(), myView.getHeight()); @@ -103,8 +103,8 @@ anim.start(); final View myView = findViewById(R.id.my_view); // get the center for the clipping circle -int cx = (myView.getLeft() + myView.getRight()) / 2; -int cy = (myView.getTop() + myView.getBottom()) / 2; +int cx = myView.getWidth() / 2; +int cy = myView.getHeight() / 2; // get the initial radius for the clipping circle int initialRadius = myView.getWidth(); |