Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 从其他开发人员导入的代码:<;未找到属性';ProgressColor';包装内…>;我的一个.xml文件出错_Android_Xml - Fatal编程技术网

Android 从其他开发人员导入的代码:<;未找到属性';ProgressColor';包装内…>;我的一个.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

这是.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"
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"
    ....
    />