summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2015-07-06 14:39:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-06 14:39:41 +0000
commit7fe86c4753e88058a7f1a1bf8d0302df9a64bd2e (patch)
treeb6abe3cf9c6c9385b52e8cc8b6e0e60f4c3a84f7 /docs
parenta559590043e32f670813e062f042f9e642297edf (diff)
parent94882946112e5a5d384fca5f39b2bdf7584cba6f (diff)
downloadframeworks_base-7fe86c4753e88058a7f1a1bf8d0302df9a64bd2e.zip
frameworks_base-7fe86c4753e88058a7f1a1bf8d0302df9a64bd2e.tar.gz
frameworks_base-7fe86c4753e88058a7f1a1bf8d0302df9a64bd2e.tar.bz2
Merge "Fix docs for ViewAnimationUtils.createCircularReveal" into mnc-dev
Diffstat (limited to 'docs')
-rw-r--r--docs/html/training/material/animations.jd8
1 files changed, 4 insertions, 4 deletions
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();