【发布时间】:2015-03-17 01:24:26
【问题描述】:
我需要一个显示 3 点加载的简单动画。所以我创建了 3 个图像,将其添加到动画列表并将其设置为 imageview。在 kitkat 之前它工作正常,但在将我的操作系统更新到 Lollipop 之后,动画似乎不起作用。
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/one_dot"
android:duration="500"/>
<item
android:drawable="@drawable/two_dot"
android:duration="500"/>
<item
android:drawable="@drawable/three_dot"
android:duration="500"/>
</animation-list>
这就是它设置为 imageView 的方式
<ImageView
android:id="@+id/dotsLoadingView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/loadingText"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:src="@drawable/dots_loading" />
Android 5.0 Lollipop 中的动画是否有一些变化?
【问题讨论】:
标签: android animation android-5.0-lollipop