Adrita Roy
Adrita Roy

Reputation: 1

Element item is not allowed here (animation-list)?

I'm using Android Studio 3.1.3. I was trying to build a splash screen using animation-list. I have some .png images in my res/drawable folder and I have this current .xml file in the same folder.

But it is showing this message: Element item is not allowed here

Here's the piece of the code from the .xml file:

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

        <item
            android:drawable="@drawable/splash00"
            android:duration="100"/>
        <item
            android:drawable="@drawable/splash01"
            android:duration="100"/>
        <item
            android:drawable="@drawable/splash02"
            android:duration="100"/>
        <item
            android:drawable="@drawable/splash03"
            android:duration="100"/>
               .
               .
               .

</animation-list>

How to resolve this issue?

Upvotes: 0

Views: 1056

Answers (0)

Related Questions