Java tutorial
//package com.java2s; import android.animation.Animator; import android.annotation.TargetApi; import android.os.Build; import android.view.View; import android.view.ViewAnimationUtils; public class Main { @TargetApi(Build.VERSION_CODES.LOLLIPOP) public static Animator toCenterReveal(View view) { int width = view.getWidth(); int height = view.getHeight(); return ViewAnimationUtils.createCircularReveal(view, width / 2, height / 2, 0, Math.max(width, height)); } }