簡體   English   中英

Xamarin - android:找不到資源

[英]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 drawable 目錄可以包含子目錄嗎?

可以在Android Studio的drawable文件夾中創建子文件夾嗎?

Android 允許的文件夾可以在這里找到https://developer.android.com/guide/topics/resources/providing-resources

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM