Element animation-list must be declared 報錯

Element animation-list must be declared

Android Studio 對於資源的放置位置有比較嚴重的定義。原先
<?xml version="1.0" encoding="utf-8"?>
 <animation-list android:id="@+id/find_people_anim"     
android:oneshot="true" xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/findpeople1" android:duration="500" /> 
 <item android:drawable="@drawable/findpeople2" android:duration="500" /> 
 <item android:drawable="@drawable/findpeople3" android:duration="500" /> 
 <item android:drawable="@drawable/findpeople4" android:duration="500" /> 
<item android:drawable="@drawable/findpeople5" android:duration="500" />
</animation-list>

這個資源都是放在anim的資料匣下,這樣是不行的。所以改放在drawable下,即可解決。

留言

這個網誌中的熱門文章

python 找圖自動點擊

Python pyserial 抓取系統內的 COM PORT

VBA EXCEL 工作表變化 馬上執行 的作法 Worksheet_Change