This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 'Hack' to emulate a linear reveal using circular reveal from `ViewAnimationUtils` | |
* | |
* @param view to reveal | |
*/ | |
void revealView(View view) { | |
int cx = view.getMeasuredWidth() * 2; | |
int cy = view.getMeasuredHeight() / 2; | |
int finalRadius = (int) Math.hypot(view.getWidth()*2, view.getHeight()); |