<?xml version="1.0" encoding="utf-8"?>
|
<resources>
|
<!-- 是否开启抗锯齿 -->
|
<attr name="antiAlias" format="boolean" />
|
<!-- 圆弧起始角度,3点钟方向为0,顺时针递增,小于0或大于360进行取余 -->
|
<attr name="startAngle" format="float" />
|
<!-- 圆弧度数 -->
|
<attr name="sweepAngle" format="float" />
|
<!-- 设置动画时间 -->
|
<attr name="animTime" format="integer" />
|
<!-- 绘制内容的数值 -->
|
<attr name="maxValue" format="float" />
|
<attr name="value" format="float" />
|
<!-- 绘制内容的单位 -->
|
<attr name="unit" format="string|reference" />
|
<attr name="unitSize" format="dimension" />
|
<attr name="unitColor" format="color|reference" />
|
<!-- 绘制内容相应的提示语 -->
|
<attr name="hint" format="string|reference" />
|
<attr name="hintSize" format="dimension" />
|
<attr name="hintColor" format="color|reference" />
|
<!-- 精度,默认为0 -->
|
<attr name="precision" format="integer" />
|
<attr name="valueSize" format="dimension" />
|
<attr name="valueColor" format="color|reference" />
|
<!-- 圆弧颜色,设置多个可实现渐变 -->
|
<attr name="arcColor1" format="color|reference" />
|
<attr name="arcColor2" format="color|reference" />
|
<attr name="arcColor3" format="color|reference" />
|
<!-- 背景圆弧颜色,默认白色 -->
|
<attr name="bgArcColor" format="color|reference" />
|
<!-- 圆弧宽度 -->
|
<attr name="arcWidth" format="dimension" />
|
<!-- 圆弧颜色, -->
|
<attr name="arcColors" format="color|reference" />
|
<!-- 文字的偏移量。相对于圆半径而言,默认三分之一 -->
|
<attr name="textOffsetPercentInRadius" format="float" />
|
|
<declare-styleable name="CircleImageView">
|
<attr name="border_width" format="dimension" />
|
<attr name="border_color" format="color" />
|
</declare-styleable>
|
|
<declare-styleable name="CircularProgressView">
|
<attr name="backWidth" format="dimension" /> <!--背景圆环宽度-->
|
<attr name="progWidth" format="dimension" /> <!--进度圆环宽度-->
|
<attr name="backColor" format="color" /> <!--背景圆环颜色-->
|
<attr name="progColor" format="color" /> <!--进度圆环颜色-->
|
<attr name="progStartColor" format="color" /> <!--进度圆环开始颜色-->
|
<attr name="progFirstColor" format="color" /> <!--进度圆环结束颜色-->
|
<attr name="progress" format="integer" /> <!--圆环进度-->
|
</declare-styleable>
|
|
<!-- 圆形进度条 -->
|
<declare-styleable name="CircleProgressBar">
|
<attr name="antiAlias" />
|
<attr name="startAngle" />
|
<attr name="sweepAngle" />
|
<attr name="animTime" />
|
<attr name="maxValue" />
|
<attr name="value" />
|
<attr name="precision" />
|
<attr name="valueSize" />
|
<attr name="valueColor" />
|
<attr name="textOffsetPercentInRadius" />
|
<!-- 绘制内容相应的提示语 -->
|
<attr name="hint" />
|
<attr name="hintSize" />
|
<attr name="hintColor" />
|
<!-- 绘制内容的单位 -->
|
<attr name="unit" />
|
<attr name="unitSize" />
|
<attr name="unitColor" />
|
<!-- 圆弧宽度 -->
|
<attr name="arcWidth" />
|
<attr name="arcColors" />
|
<!-- 背景圆弧颜色 -->
|
<attr name="bgArcColor" />
|
<!-- 背景圆弧宽度 -->
|
<attr name="bgArcWidth" format="dimension" />
|
</declare-styleable>
|
|
<declare-styleable name="DialProgress">
|
<attr name="antiAlias" />
|
<attr name="startAngle" />
|
<attr name="sweepAngle" />
|
<attr name="animTime" />
|
<attr name="maxValue" />
|
<attr name="value" />
|
<attr name="precision" />
|
<attr name="valueSize" />
|
<attr name="valueColor" />
|
<attr name="textOffsetPercentInRadius" />
|
<!-- 绘制内容的单位 -->
|
<attr name="unit" />
|
<attr name="unitSize" />
|
<attr name="unitColor" />
|
<!-- 绘制内容相应的提示语 -->
|
<attr name="hint" />
|
<attr name="hintSize" />
|
<attr name="hintColor" />
|
<!-- 圆弧的宽度 -->
|
<attr name="arcWidth" />
|
<!-- 刻度的宽度 -->
|
<attr name="dialWidth" format="dimension|reference" />
|
<!-- 刻度之间的间隔 -->
|
<attr name="dialIntervalDegree" format="integer" />
|
<!-- 圆弧颜色, -->
|
<attr name="arcColors" />
|
<!-- 背景圆弧线颜色 -->
|
<attr name="bgArcColor" />
|
<!-- 刻度线颜色 -->
|
<attr name="dialColor" format="color|reference" />
|
</declare-styleable>
|
|
<declare-styleable name="WaveProgress">
|
<!-- 是否开启抗锯齿 -->
|
<attr name="antiAlias" />
|
<!-- 深色水波动画时间 -->
|
<attr name="darkWaveAnimTime" format="integer" />
|
<!-- 浅色水波动画时间 -->
|
<attr name="lightWaveAnimTime" format="integer" />
|
<!-- 最大值 -->
|
<attr name="maxValue" />
|
<!-- 当前值 -->
|
<attr name="value" />
|
<attr name="valueColor" />
|
<attr name="valueSize" />
|
<!-- 绘制内容相应的提示语 -->
|
<attr name="hint" />
|
<attr name="hintSize" />
|
<attr name="hintColor" />
|
<!-- 圆环宽度 -->
|
<attr name="circleWidth" format="dimension" />
|
<!-- 圆环颜色 -->
|
<attr name="circleColor" format="color|reference" />
|
<!-- 背景圆环颜色 -->
|
<attr name="bgCircleColor" format="color|reference" />
|
<!-- 锁定水波不随圆环进度改变,默认锁定在50%处 -->
|
<attr name="lockWave" format="boolean" />
|
<!-- 水波数量 -->
|
<attr name="waveNum" format="integer" />
|
<!-- 水波高度,峰值和谷值之和 -->
|
<attr name="waveHeight" format="dimension" />
|
<!-- 深色水波颜色 -->
|
<attr name="darkWaveColor" format="color|reference" />
|
<!-- 是否显示浅色水波 -->
|
<attr name="showLightWave" format="boolean" />
|
<!-- 浅色水波颜色 -->
|
<attr name="lightWaveColor" format="color|reference" />
|
<!-- 浅色水波的方向 -->
|
<attr name="lightWaveDirect" format="enum">
|
<enum name="L2R" value="0" />
|
<enum name="R2L" value="1" />
|
</attr>
|
</declare-styleable>
|
|
</resources>
|