簡體   English   中英

錯誤:在包中找不到屬性“ showOuterShadow”的資源標識符

[英]error: No resource identifier found for attribute 'showOuterShadow' in package

我正在開發一個包含量規視圖的應用程序。 我從這里https://github.com/CodeAndMagic/GaugeView中找到了代碼我在包org.codeandmagic.android.gauge.demo中收到針對屬性“ showOuterShadow”找不到資源標識符的錯誤。 我在該項目的Java構建路徑中添加了該庫,但是該庫仍在發生,請幫助我解決這是我的xml代碼:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:gauge="http://schemas.android.com/apk/res/org.codeandmagic.android.gauge.demo"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:gravity="center"
    android:background="@drawable/background"
    android:padding="20dp" >

   <org.codeandmagic.android.gauge.GaugeView
        android:id="@+id/gauge_view1"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1" />

    <org.codeandmagic.android.gauge.GaugeView  <!--Error occurring here-->
        android:id="@+id/gauge_view2"
        android:layout_width="150dp"
        android:layout_height="150dp"
        android:layout_marginTop="10dp"
        gauge:showOuterShadow="true"
        gauge:showOuterRim="false"
        gauge:showNeedle="false"
        gauge:showRanges="false"
        gauge:showText="true"
        gauge:textUnit="%" />

</LinearLayout>

這太荒謬了,無法回答我自己的問題:我沒有在我的android項目中添加該庫,即您的項目->右鍵點擊-> POPERTIES-> ANDROID->點擊“添加”->選擇庫->選擇“應用” ->單擊“確定”->運行您的項目

暫無
暫無

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

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