这是
Palabre
视图的启动屏幕:
https://play.google.com/store/apps/details?id=com.levelup.palabre
我们可以看到,在应用程序启动时,有一个带有图像动画的启动屏幕。
这就是我要实现的美丽效果:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imgLogo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/grand_canyon"/>
</RelativeLayout>
结果:
这个SplashActivity有一个全屏视图。
我们如何像Palabre一样将这个图像精确地移动到左侧或右侧?这个屏幕上的图片尺寸是多少?
编辑:
我还发现了这个全屏ImageView:
在你的布局中:
android:scaleType = "centerCrop"
我们需要为这个ImageView添加动画,该怎么做?
谢谢。