是否可以animation-list
在不使用 XML 膨胀后将 drawable 设置为自动启动AnimationDrawable.start()
?
我的animation-list
:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false">
<item android:drawable="@drawable/download_light" android:duration="200" />
<item android:drawable="@drawable/download20" android:duration="200" />
<item android:drawable="@drawable/download40" android:duration="200" />
<item android:drawable="@drawable/download60" android:duration="200" />
<item android:drawable="@drawable/download80" android:duration="200" />
<item android:drawable="@drawable/download_on" android:duration="300" />
</animation-list>