如果我有一个动画可绘制的xml文件(动画列表),我可以使用
基本上我不想以某种方式加载xml文件并获取该动画中涉及的所有
这是我正在使用的动画xml。
R.drawable.anim
引用它,是否有一种方法可以将所有Drawable
ID存储在数组中?基本上我不想以某种方式加载xml文件并获取该动画中涉及的所有
Drawable
的列表。这是我正在使用的动画xml。
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/typer_step_1"
android:duration="50"/>
<item
android:drawable="@drawable/typer_step_2"
android:duration="50"/>
<item
android:drawable="@drawable/typer_step_3"
android:duration="50"/>
<item
android:drawable="@drawable/typer_step_4"
android:duration="50"/>
</animation-list>