简体   繁体   中英

Xamarin - android: no resource found

Executing project, a no resource found error appea in file:

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

    <item android:drawable="@drawable/spinner/load0.png" android:duration="100" />
    <item android:drawable="@drawable/spinner/load1.png" android:duration="100" />

</animation-list>

My drawable png images are on folder Resource->drawable->spinner->load0, load1. Where is y fault?

You cannot add folders in the Drawable folder, Since the ResourceDesigner takes care of all this and Android does not allow user-specific folders in the Resource Folder, Try moving them out of the Spinner folder directly in the resources and use them. For more details check these

Can the Android drawable directory contain subdirectories?

Possible to create subfolders in drawable folder in Android Studio?

The folders that are allowed by Android can be found here https://developer.android.com/guide/topics/resources/providing-resources

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM