当我们打开一个应用程序时,会在应用程序的启动画面中看到不同类型的动画对象或人物移动,例如一个人在运行,而应用程序正在加载,或者应用程序的名称下落,一个人坐在上面拍照,等等。
我们如何创建这样的画面,需要使用什么类型的软件?
您可以向我推荐一些教程吗?
我们如何创建这样的画面,需要使用什么类型的软件?
您可以向我推荐一些教程吗?
您还可以使用自己创建的GIF图像通过Glide图像加载和缓存库显示在启动画面上的imageview
中。
例如:
ImageView imageView = (ImageView) findViewById(R.id.imageView);
GlideDrawableImageViewTarget imageViewTarget = new GlideDrawableImageViewTarget(imageView);
Glide.with(this).load(R.raw.gif_image).into(imageViewTarget);
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/bounce_interpolator" >
<scale
android:duration="600"
android:fromXScale="1"
android:fromYScale="0.5"
android:pivotX="50%"
android:pivotY="0%"
android:toXScale="1.0"
android:toYScale="1.0" />
<alpha
android:duration="600"
android:fromAlpha="0.0"
android:toAlpha="1.0" />
</set>
在启动画面上
Animation animation = AnimationUtils.loadAnimation(contex, R.anim.blink);
animation.setInterpolator(new LinearInterpolator());
animation.setRepeatCount(Animation.INFINITE);
animation.setDuration(700);
并使用此动画,如下所示
final ImageView splash = (ImageView) findViewById(R.id.btnrecievecall);
splash.startAnimation(animation)
1. 使用gif图像文件。 或 2. 首先设置动画效果,然后直接使用该图像代替屏幕。