本动画揭露库,已经兼容 android9.0 版本,提供 6 种类的揭露动画,如需更多效果,可自行拓展。
- 在你需要做动画的布局上,套上
RevealAnimationLayout
就可以了,支持套任何布局!!!
<com.revealanimation.RevealAnimationLayout
android:id="@+id/animat_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_marginLeft="50dp"
android:layout_marginRight="50dp"
android:scaleType="centerCrop"
android:src="@mipmap/test"/>
</com.revealanimation.RevealAnimationLayout>
// java 代码中,调用
mClipAnimationLayout.startAnimal(RevealAnimationLayout.AnimaType.Circle);
本库还是测试状态,欢迎各位进行 commit ,指出不正之处。或者可以新建 issue 提出问题,我将一一解答。
博客:https://www.jianshu.com/p/ab8a145e9b4a
鸣谢:gcssloop 作者给了我灵感。
Copyright (C) 2015 Thomas Bruyelle
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.