Android 资源$NotFoundException在anim文件夹中

Android 资源$NotFoundException在anim文件夹中,android,listview,android-animation,android-progressbar,Android,Listview,Android Animation,Android Progressbar,我在android studio的res文件夹下创建了一个动画文件夹。我想在资源文件夹下创建动画文件夹是可以的。现在我试着把这个文件放到anim文件夹中,这是一个正在进度条中使用的文件 但是我的应用程序崩溃了,声明如下: 原因:org.xmlpull.v1.XmlPullParserException:二进制XML文件行#2:可绘制标记集无效 我试图将progressbar设置为列表视图的emptyview。 这就是我正在做的 我在做什么 <?xml version="1.0" enco

我在android studio的res文件夹下创建了一个动画文件夹。我想在资源文件夹下创建动画文件夹是可以的。现在我试着把这个文件放到anim文件夹中,这是一个正在进度条中使用的文件

但是我的应用程序崩溃了,声明如下:

原因:org.xmlpull.v1.XmlPullParserException:二进制XML文件行#2:可绘制标记集无效

我试图将progressbar设置为列表视图的emptyview。 这就是我正在做的

我在做什么

 <?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/linear_interpolator"
    >
    <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
        android:drawable="@drawable/iconloading"
        android:pivotX="50%"
        android:pivotY="50%" />
    </set>
customListView.setEmptyView(findViewById(R.id.loading));
动画>加载动画

 <?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/linear_interpolator"
    >
    <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
        android:drawable="@drawable/iconloading"
        android:pivotX="50%"
        android:pivotY="50%" />
    </set>
customListView.setEmptyView(findViewById(R.id.loading));

但我不知道问题出在哪里。我正在按照林克的所有程序进行操作

我发现答案很简单,我只是用下面的方法修改了它

<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/iconloading"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="1080" />


它的工作环节是一种魅力

我认为这件事在哪个文件夹中添加了
iconloading
Drawable?所以我需要做什么?@AllayKhalil:问题在于
iconloading
,如中所示Logs@SpiderMan这里讨论的只是打字错误