attrs.xml 2.78 KB
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="SHCircleProgressBar">
        <attr name="inner_radius" format="dimension" />
        <attr name="background_color" format="color" />
        <attr name="progress_color" format="color" />
        <attr name="progress_stoke_width" format="dimension" />
        <attr name="show_arrow" format="boolean" />
        <attr name="enable_circle_background" format="boolean" />
        <attr name="arrow_width" format="dimension" />
        <attr name="arrow_height" format="dimension" />
        <attr name="progress" format="integer" />
        <attr name="max" format="integer" />
        <attr name="progress_text_size" format="dimension" />
        <attr name="progress_text_color" format="color" />
        <attr name="progress_text_visibility" format="enum">
            <enum name="visible" value="0" />
            <enum name="invisible" value="1" />
        </attr>
    </declare-styleable>

     <declare-styleable name="MagicTextView">
        <attr name="innerShadowColor" format="color" />
        <attr name="innerShadowRadius" format="float" />
        <attr name="innerShadowDx" format="float" />
        <attr name="innerShadowDy" format="float" />
        <attr name="outerShadowColor" format="color" />
        <attr name="outerShadowRadius" format="float" />
        <attr name="outerShadowDx" format="float" />
        <attr name="outerShadowDy" format="float" />
        <attr name="typeface" format="string" />
        <attr name="foreground" format="reference|color" />
        <attr name="strokeWidth" format="float" />
        <attr name="strokeMiter" format="float" />
        <attr name="strokeColor" format="color" />
        <attr name="strokeJoinStyle">
            <enum name="miter" value="0" />
            <enum name="bevel" value="1" />
            <enum name="round" value="2" />
        </attr>
    </declare-styleable>

    <declare-styleable name="SHSwipeRefreshLayout">
        <!--Loading视图背景颜色-->
        <attr name="guidance_view_bg_color" format="color|reference" />
        <!--Loading视图中文字颜色-->
        <attr name="guidance_text_color" format="color|reference" />
        <!--进度条颜色-->
        <attr name="progress_bar_color" format="color|reference" />
        <!--进度条背景色-->
        <attr name="progress_bg_color" format="color|reference" />
        <!--下拉刷新文字描述-->
        <attr name="refresh_text" format="string|reference" />
        <!--上拉加载文字描述-->
        <attr name="load_text" format="string|reference" />
        <!--下拉刷新是否可用-->
        <attr name="pull_refresh_enable" format="boolean" />
        <!--上拉加载是否可用-->
        <attr name="loadmore_enable" format="boolean" />
    </declare-styleable>
</resources>