<?xml version="1.0" encoding="utf-8"?>
|
<resources>
|
|
<declare-styleable name="BatteryView">
|
<!-- 电池外壳图片资源 -->
|
<attr name="batteryFrame" format="reference" />
|
<!-- 电量值 (0-100) -->
|
<attr name="batteryLevel" format="integer" />
|
<!-- 是否显示百分比文字 -->
|
<attr name="showPercentage" format="boolean" />
|
</declare-styleable>
|
|
<declare-styleable name="ShowTextLinearLayout">
|
<attr name="margin_width" format="dimension" /><!--左右控件magrin-->
|
<attr name="min_padding_width" format="dimension" /> <!--最小的左右padding-->
|
<attr name="max_padding_width" format="dimension" /> <!--最大的左右padding-->
|
<attr name="padding_height" format="dimension" /> <!--上下padding-->
|
<attr name="padding_left" format="dimension" /><!--左padding-->
|
<attr name="padding_right" format="dimension" /><!--右padding-->
|
<attr name="text_size" format="dimension" />
|
<attr name="text_color" format="color" />
|
<attr name="text_bg" format="reference" />
|
</declare-styleable>
|
|
<declare-styleable name="SlideButtonView">
|
<!-- 滑动方向:0=左滑,1=右滑 -->
|
<attr name="slideDirection" format="enum">
|
<enum name="left" value="0" />
|
<enum name="right" value="1" />
|
</attr>
|
<!-- 背景颜色 -->
|
<attr name="slideBackgroundColor" format="color" />
|
<!-- 文字内容 -->
|
<attr name="slideText" format="string" />
|
<!-- 文字颜色 -->
|
<attr name="slideTextColor" format="color" />
|
<!-- 文字大小 -->
|
<attr name="slideTextSize" format="dimension" />
|
<!-- 滑块图片资源(关键属性) -->
|
<attr name="thumbDrawable" format="reference" />
|
<!-- 滑块形状:0=圆形裁剪,1=矩形,2=圆角矩形 -->
|
<attr name="thumbShape" format="enum">
|
<enum name="circle" value="0" />
|
<enum name="square" value="1" />
|
<enum name="roundRect" value="2" />
|
</attr>
|
<!-- 滑动阈值 (0.0-1.0) -->
|
<attr name="slideThreshold" format="float" />
|
<!-- 背景圆角半径(关键:控制矩形圆角程度) -->
|
<attr name="backgroundCornerRadius" format="dimension" />
|
<!-- 滑块圆角半径(当 thumbShape=roundRect 时有效) -->
|
<attr name="thumbCornerRadius" format="dimension" />
|
</declare-styleable>
|
|
<declare-styleable name="SlideSwitchView">
|
<!-- 背景颜色 -->
|
<attr name="switchBackgroundColorUnchecked" format="color"/>
|
<attr name="switchBackgroundColorChecked" format="color"/>
|
<!-- 滑块颜色 -->
|
<attr name="switchThumbColorUnchecked" format="color"/>
|
<attr name="switchThumbColorChecked" format="color"/>
|
<!-- 文字颜色 -->
|
<attr name="switchTextColorUnchecked" format="color"/>
|
<attr name="switchTextColorChecked" format="color"/>
|
<!-- 文字内容 -->
|
<attr name="switchTextUnchecked" format="string"/>
|
<attr name="switchTextChecked" format="string"/>
|
<!-- 文字大小 -->
|
<attr name="switchTextSize" format="dimension"/>
|
<!-- 圆角 -->
|
<attr name="switchCornerRadius" format="dimension"/>
|
<attr name="switchThumbCornerRadius" format="dimension"/>
|
<!-- 初始状态 -->
|
<attr name="switchChecked" format="boolean"/>
|
<!-- 滑块与背景间距 -->
|
<attr name="switchThumbMargin" format="dimension"/>
|
</declare-styleable>
|
|
<declare-styleable name="LoopView">
|
<attr name="awv_textsize" format="integer" />
|
<attr name="awv_lineSpace" format="float" />
|
<attr name="awv_centerTextColor" format="integer" />
|
<attr name="awv_outerTextColor" format="integer" />
|
<attr name="awv_dividerTextColor" format="integer" />
|
<attr name="awv_itemsVisibleCount" format="integer" />
|
<attr name="awv_isLoop" format="boolean" />
|
<attr name="awv_isCurve" format="boolean" />
|
<attr name="awv_initialPosition" format="integer" />
|
<attr name="awv_scaleX" format="float" />
|
</declare-styleable>
|
</resources>
|