2
是否有可能有一個這樣的動畫:我可以將android:動畫列表項的持續時間移動到attrs.xml嗎?
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/pr_l_b01"
android:duration="@dont-know-what/animation_frame_duration"/>
<item
android:drawable="@drawable/pr_l_b02"
android:duration="@dont-know-what/animation_frame_duration"/>
<item
android:drawable="@drawable/pr_l_b03"
android:duration="@dont-know-what/animation_frame_duration"/>
</animation-list>
和attrs.xml:
<dont-know-what name="animation_frame_duration"/></dont-know-what>
?
太可惜了。這麼簡單......;)讓我試試你的例子... –
具體例子的答案總是更好!做得好!希望它有幫助;) –
;) – Dyna