[英]Xamarin - android: no resource found
执行项目,在文件中找不到资源错误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>
我的可绘制 png 图像位于文件夹 Resource->drawable->spinner->load0, load1 上。 你错在哪里?
您不能在 Drawable 文件夹中添加文件夹,因为 ResourceDesigner 负责所有这些,而 Android 不允许在资源文件夹中使用用户特定的文件夹,请尝试将它们直接从资源中的 Spinner 文件夹移出并使用它们。 有关更多详细信息,请查看这些
可以在Android Studio的drawable文件夹中创建子文件夹吗?
Android 允许的文件夹可以在这里找到https://developer.android.com/guide/topics/resources/providing-resources
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.