百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

ExpectAnim

> 设计协作
开源

描述你的动画并运行!

2.8K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

描述你的动画并运行!

ExpectAnim

描述你的动画并运行!

java
new ExpectAnim()

                .expect(avatar)
                .toBe(
                    Expectations...
                )
                .toAnimation()
                .start();

下载

在你的模块中

groovy
compile 'com.github.florent37:expectanim:1.0.8'

这段代码描述了上面的视频

…

跟随滚动

使用 setPercent 来修改动画的当前进度

滚动视图示例

…

串联

你可以使用 ExpectAnim.concat(静态方法)在一个动画之后播放另一个动画

…

直接应用

使用 setNow 直接应用变换

java
new ExpectAnim()
                .expect(view)
                .toBe(
                        outOfScreen(Gravity.BOTTOM)
                )
                .toAnimation()
                .setNow();

重置

使用 reset 将视图恢复到初始状态

java
expectAnim.reset():

期望列表

…

`

Proguard

-keep class com.github.florent37.expectanim.*{ *; }
-dontwarn com.github.florent37.expectanim.**

更新日志

1.0.7

添加了 startDelay

1.0.6

添加了 ExpectAnim.concat

1.0.4

修复了监听器引用

1.0.3

Alpha 0 强制视图为不可见`

1.0.2

添加了 flips 旋转

flippedHorizontally() flippedVertically() flippedHorizontallyAndVertically() withCameraDistance(1000f)

1.0.1

添加了 rotations

致谢

作者:Florent Champigny

博客:http://www.tutos-android-france.com/

摩托车平板资料:https://www.fiches-plateau-moto.fr/

许可证

版权所有 2017 florent37, Inc.

根据 Apache 许可证 2.0 版(“许可证”)授权;

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaandroidanimationdesignexpect

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类设计协作
定价开源

> 相关工具

F
Figma
协作式界面设计工具
S
sketch-wakatime
Sketch plugin for automatic time tracking and metrics generated from your Sketch usage.
Q
QuickColor
Quickly apply fills from the global or document color palettes to selected elements - 🎨