简体   繁体   English

Xamarin - android:找不到资源

[英]Xamarin - android: no resource found

Executing project, a no resource found error appea in file:执行项目,在文件中找不到资源错误appea:

<?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.我的可绘制 png 图像位于文件夹 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.您不能在 Drawable 文件夹中添加文件夹,因为 ResourceDesigner 负责所有这些,而 Android 不允许在资源文件夹中使用用户特定的文件夹,请尝试将它们直接从资源中的 Spinner 文件夹移出并使用它们。 For more details check these有关更多详细信息,请查看这些

Can the Android drawable directory contain subdirectories? Android drawable 目录可以包含子目录吗?

Possible to create subfolders in drawable folder in Android Studio? 可以在Android Studio的drawable文件夹中创建子文件夹吗?

The folders that are allowed by Android can be found here https://developer.android.com/guide/topics/resources/providing-resources Android 允许的文件夹可以在这里找到https://developer.android.com/guide/topics/resources/providing-resources

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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