错误:在包中找不到属性“showOuterShadow”的资源标识符

时间:2015-01-17 05:37:29

标签: android gauge

我正在开发一个由量表视图组成的应用程序。我从这里找到了代码https://github.com/CodeAndMagic/GaugeView 我收到错误的没有资源标识符发现forattribute'showOuterShadow'在包中  “org.codeandmagic.android.gauge.demo。我在项目的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>

1 个答案:

答案 0 :(得分:-1)

回答我自己的问题真是太荒谬了: 我没有在我的android项目中添加库  您的项目 - &gt; RIGHTCLICK-&gt; POPERTIES-&gt; ANDROID-&gt;点击&#34;添加&#34; - &gt;选择图书馆 - &gt;点击&#34;申请&#34; - &gt;点击&#34 ;好的&#34; - &gt;运行您的项目

相关问题