Android MarshMallow 中未显示 ProgressBar

ProgressBar Not Showing in Android MarshMallow

我在 Android Marsh 中遇到进度条问题 mallow.Its 在其他 version.Progress 中工作正常 version.Progress 在 Marsh 中未显示 mallow.Once 检查我的 xml 代码.

<ProgressBar
            android:id="@+id/progressBar"
            style="@android:style/Widget.ProgressBar.Large"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:indeterminate="true"
            android:indeterminateDrawable="@anim/custom_progress" />

下面的代码是我的custom_progress.xml代码

 <?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:oneshot="false" >

    <item android:duration="10">
        <clip android:drawable="@drawable/load_00" />
    </item>
    <item android:duration="10">
        <clip android:drawable="@drawable/load_01" />
    </item>
    <item android:duration="10">
        <clip android:drawable="@drawable/load_02" />
    </item>
    <item android:duration="10">
        <clip android:drawable="@drawable/load_03" />
    </item>
    <item android:duration="10">
        <clip android:drawable="@drawable/load_04" />
    </item>
    <item android:duration="10">
        <clip android:drawable="@drawable/load_05" />
<animation-list/>

请就此问题向我提出建议

我终于找到了解决方案,它可能会帮助某些 one.I 从动画列表中删除 android 棉花糖之类的剪辑

<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:oneshot="false"
    android:visible="true">

    <item
        android:drawable="@drawable/load_00"
        android:duration="10" />

    <item
        android:drawable="@drawable/load_01"
        android:duration="10" />
    <item
        android:drawable="@drawable/load_02"
        android:duration="10" />
    <item
        android:drawable="@drawable/load_03"
        android:duration="10" />
    <item
        android:drawable="@drawable/load_04"
        android:duration="10" />
    <item
        android:drawable="@drawable/load_05"
        android:duration="10" />
<animation-list/>