Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9433c87b authored by Ricardo Cervera's avatar Ricardo Cervera Committed by Android Git Automerger
Browse files

am aa743477: am c190e7ee: am af002b35: am 61f91724: Merge "docs: Fix the...

am aa743477: am c190e7ee: am af002b35: am 61f91724: Merge "docs: Fix the circularReveal example." into lmp-docs

* commit 'aa743477':
  docs: Fix the circularReveal example.
parents e54553c8 aa743477
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -84,12 +84,14 @@ int cx = (myView.getLeft() + myView.getRight()) / 2;
int cy = (myView.getTop() + myView.getBottom()) / 2;

// get the final radius for the clipping circle
int finalRadius = myView.getWidth();
int finalRadius = Math.max(myView.getWidth(), myView.getHeight());

// create and start the animator for this view
// (the start radius is zero)
// create the animator for this view (the start radius is zero)
Animator anim =
    ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius);

// make the view visible and start the animation
myView.setVisibility(View.VISIBLE);
anim.start();
</pre>