2015-01-17 107 views
0

我正在開發一個由標尺視圖組成的應用程序。我在這裏發現了代碼https://github.com/CodeAndMagic/GaugeView 我收到一個錯誤消息,找到沒有資源標識符forattribute'showOuterShadow'in package 'org.codeandmagic.android.gauge.demo。我添加了庫項目的Java構建路徑,但它仍然存在,請幫我解決這個問題,這是我的XML代碼:錯誤:找不到包含屬性'showOuterShadow'的資源標識符

<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> 
+0

您是否已將庫添加到項目的屬性 - > Android->添加庫? –

+0

感謝您的答覆老兄,我沒有檢查。後來我檢查了它,我清除了我的問題。 – Sundeep

回答

-1

這太荒謬回答我的問題: 我沒有」 t在我的android項目中添加庫 您的項目 - > RIGHTCLICK-> POPERTIES-> ANDROID-> CLICK「ADD」 - > SELECT LIBRARY-> CLICK「APPLY」 - > CLICK「OK」 - >運行您的項目

相關問題