描述你的动画并运行!
描述你的动画并运行!
new ExpectAnim()
.expect(avatar)
.toBe(
Expectations...
)
.toAnimation()
.start();compile 'com.github.florent37:expectanim:1.0.8'这段代码描述了上面的视频
…使用 setPercent 来修改动画的当前进度
滚动视图示例
…你可以使用 ExpectAnim.concat(静态方法)在一个动画之后播放另一个动画
…使用 setNow 直接应用变换
new ExpectAnim()
.expect(view)
.toBe(
outOfScreen(Gravity.BOTTOM)
)
.toAnimation()
.setNow();使用 reset 将视图恢复到初始状态
expectAnim.reset():…`
-keep class com.github.florent37.expectanim.*{ *; }
-dontwarn com.github.florent37.expectanim.**添加了 startDelay
添加了 ExpectAnim.concat
修复了监听器引用
Alpha 0 强制视图为不可见`
添加了 flips 旋转
flippedHorizontally()
flippedVertically()
flippedHorizontallyAndVertically()
withCameraDistance(1000f)
添加了 rotations
作者:Florent Champigny
博客:http://www.tutos-android-france.com/
摩托车平板资料:https://www.fiches-plateau-moto.fr/
版权所有 2017 florent37, Inc.
根据 Apache 许可证 2.0 版(“许可证”)授权;暂无开放 Issues,或尚未同步最近议题。