码迷,mamicode.com
首页 > 移动开发 > 详细

Android 官网提供的Custom-view 编译出错--error: No resource identifier found for attribute

时间:2015-07-16 13:34:53      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

error: No resource identifier found for attribute in custom-views from http://developer.android.com

原来:

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:custom="http://schemas.android.com/apk/res/com.example.android.customviews"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
<com.example.android.customviews.charting.PieChart
        android:id="@+id/Pie"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="10dp"
        android:layout_weight="100"
        custom:showText="true"
        custom:labelHeight="20dp"
        custom:labelWidth="110dp"
        custom:labelY="85dp"
        custom:labelPosition="left"
        custom:highlightStrength="1.12"
        android:background="@android:color/white"
        custom:pieRotation="0"
        custom:labelColor="@android:color/black"
        custom:autoCenterPointerInSlice="true"
        custom:pointerRadius="4dp"
        />
<Button
        android:id="@+id/Reset"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/reset_button"
        />
</LinearLayout>

stackoverflow 对该类问题的讨论

 

Android 官网提供的Custom-view 编译出错--error: No resource identifier found for attribute

标签:

原文地址:http://www.cnblogs.com/conncui/p/4650805.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!