Android 从其他开发人员导入的代码:<;未找到属性';ProgressColor';包装内…>;我的一个.xml文件出错
这是.xml文件Android 从其他开发人员导入的代码:<;未找到属性';ProgressColor';包装内…>;我的一个.xml文件出错,android,xml,Android,Xml,这是.xml文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:seekarc="http://schemas.android.com/apk/res/com.pelkinsoft.enpower" android:layout_width="match_parent" androi
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:seekarc="http://schemas.android.com/apk/res/com.pelkinsoft.enpower"
android:layout_width="match_parent"
android:layout_height="match_parent" >
错误发生在:
<com.triggertrap.seekarc.SeekArc
android:id="@+id/seekArc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="30dp"
seekarc:progressColor="@color/arc_color"
seekarc:rotation="180"
seekarc:startAngle="30"
seekarc:sweepAngle="300"
seekarc:touchInside="true" />
我是Android新手,这让我无法有效地使用这个应用程序。非常感谢您的帮助。您必须将Seek Arc库()添加到您的项目中在res foder中,创建以下文件:
res/values/color.xml
然后,定义SeekArc视图使用的颜色:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="arc_color">#0000FF</color>
</resources>
#0000FF
或
在SeekArk视图中手动设置颜色:
<com.triggertrap.seekarc.SeekArc
android:id="@+id/seekArc"
android:layout_width="match_parent"
....
seekarc:progressColor="#0000FF"
....
/>