android - 如何在 Android 中创建动态启动画面?

标签 android android-animation splash-screen animated-gif

我看到了一个由设计师为移动应用程序设计的链接。我想实现 this kind of effect or animation我不知道该说什么。

请指导我如何在 Android 应用程序启动画面中实现完全相同的效果。

我需要它的 gif 图像并在 webview 中显示吗?

或任何类型的可绘制动画?

任何类型的建议和帮助都将不胜感激。

提前致谢。

最佳答案

您可以使用 AnimatorSet

This class plays a set of Animator objects in the specified order. Animations can be set up to play together, in sequence, or after a specified delay.

There are two different approaches to adding animations to a AnimatorSet: either the playTogether() or playSequentially() methods can be called to add a set of animations all at once, or the play(Animator) can be used in conjunction with methods in the Builder class to add animations one by one.

It is possible to set up a AnimatorSet with circular dependencies between its animations. For example, an animation a1 could be set up to start before animation a2, a2 before a3, and a3 before a1. The results of this configuration are undefined, but will typically result in none of the affected animations being played. Because of this (and because circular dependencies do not make logical sense anyway), circular dependencies should be avoided, and the dependency flow of animations should only be in one direction.

您可以在下面的链接中查看 demp 案例

  1. Digest Splash for Android

关于android - 如何在 Android 中创建动态启动画面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33886814/

相关文章:

Android Studio 方法 getCurrentPosition 必须从 UI 线程调用,当前推断线程是 worker

android - NavigationView 中的滚动动画

python - wxpython - 将 PIL.ImageFont 转换为 wx.Font 或 wx.Bitmap

android - 当我在设备 Redmi 3s prime 上安装我的 Android 应用程序时出现错误,它正在 genymotion 模拟器上工作

java - 在 Android 上创建离线 map

Android map v2 - 动画标记

c# - 如何在 STA 线程上与 Bootstrapper 同时运行动画 SplashScreen

java - splashscreen 无法在 java 的 netbeans IDE 中工作?

android - 由于空指针异常导致 Firebase 崩溃

android - 动画改变 LayoutParams (RelativeLayout)