效果图:
添加仓库:
maven { url "https://jitpack.io" }
引入依赖:
implementation "com.github.goweii:AnyLayer:$version"
//implementation "com.github.goweii:AnyLayer:3.3.0-androidx"
R.id.btnSwitch -> {
login_layout_2.visibility = View.VISIBLE
val animal = AnimatorHelper.createCircularRevealOutAnim(login_layout_1,0,0)
animal.duration = 1000
animal.addListener(object : AnimatorListenerAdapter() {
override fun onAnimationEnd(animation: Animator?) {
super.onAnimationEnd(animation)
login_layout_1.visibility = View.GONE
}
})
animal.start()
}