Skip to content

Instantly share code, notes, and snippets.

Chrisvin Jem Chrisvin

Block or report user

Report or block Chrisvin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Chrisvin
Chrisvin / ViewReveal.java
Last active Aug 6, 2019
Hack for circular reveal animation that emulates linear reveal
View ViewReveal.java
/**
* '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());
You can’t perform that action at this time.