Android的Material Design设计理念 带来很多绚丽的动画效果
添加依赖
compile ‘com.android.support:design:25.3.1’
先上效果图
Circular Reveal
官方将这一动画称为揭露效果,它在官网中的描述是这样的:
当您显示或隐藏一组 UI 元素时,揭露动画可为用户提供视觉连续性。ViewAnimationUtils.createCircularReveal()
方法让您能够为裁剪区域添加动画以揭露或隐藏视图。
那么使用ViewAnimationUtils.createCircularReveal()方法就能达到基本的揭露动画效果了。那么我们就直接开始看一下这个方法到底需要哪些参数吧
public static Animator createCircularReveal(View view, int centerX, int centerY, float startRadius, float endRadius) {
throw new RuntimeException("Stub!");
}