attrs.xml 9 KB
Newer Older
konghaorui committed
1 2 3 4
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!--头部bar-->
konghaorui committed
5 6 7 8 9 10 11 12 13 14 15 16
    <declare-styleable name="Platform_TitleBar">
        <attr name="pa_left_text" />
        <attr name="pa_left_start_icon" format="reference" />
        <attr name="pa_left_end_icon" format="reference" />
        <attr name="pa_title_text" format="string" />
        <attr name="pa_right_text" />
        <attr name="pa_right_start_icon" format="reference" />
        <attr name="pa_right_end_icon" format="reference" />
        <attr name="pa_side_text_color" format="color" />
        <attr name="pa_title_bar_text_color" format="color|reference" />
        <attr name="pa_bm_line_color" format="color" />
        <attr name="pa_right_iv" format="reference" />
17
        <attr name="pa_left_start_icon_color" format="color"  />
konghaorui committed
18 19 20
    </declare-styleable>
    <attr name="pa_left_text" format="string" />
    <attr name="pa_right_text" format="string" />
konghaorui committed
21 22 23 24 25 26 27

    <declare-styleable name="FlowLayout">
        <attr name="width_space" format="dimension" />
        <attr name="height_space" format="dimension" />
    </declare-styleable>

    <!--JumpTextView属性-->
konghaorui committed
28 29
    <declare-styleable name="Platform_JumpTextView">
        <attr name="pa_jump_tv_hide_arrow" format="boolean" />
konghaorui committed
30
        <!--左侧图标-->
konghaorui committed
31
        <attr name="pa_jump_tv_icon" format="reference" />
konghaorui committed
32
        <!--右侧文字开始处图标-->
konghaorui committed
33
        <attr name="pa_jump_tv_right_icon_start" format="reference" />
konghaorui committed
34
        <!--右侧文字末尾图标-->
konghaorui committed
35
        <attr name="pa_jump_tv_right_icon_end" format="reference" />
konghaorui committed
36
        <!--左侧文字-->
konghaorui committed
37
        <attr name="pa_jump_tv_left_text" format="string" />
konghaorui committed
38
        <!--左侧文字大小-->
konghaorui committed
39
        <attr name="pa_jump_tv_left_size" format="dimension" />
konghaorui committed
40
        <!--左侧文字颜色-->
konghaorui committed
41
        <attr name="pa_jump_tv_left_color" format="color" />
konghaorui committed
42
        <!--左侧文字宽度-->
konghaorui committed
43
        <attr name="pa_jump_tv_left_width" format="dimension" />
konghaorui committed
44
        <!--右侧文字gravity-->
konghaorui committed
45 46 47
        <attr name="pa_jump_tv_right_gravity" format="enum">
            <enum name="pa_left" value="1" />
            <enum name="pa_right" value="2" />
konghaorui committed
48 49
        </attr>
        <!--右侧文字-->
konghaorui committed
50
        <attr name="pa_jump_tv_right_text" format="string" />
konghaorui committed
51
        <!--右侧文字大小-->
konghaorui committed
52
        <attr name="pa_jump_tv_right_size" format="dimension" />
konghaorui committed
53
        <!--右侧文字颜色-->
konghaorui committed
54
        <attr name="pa_jump_tv_right_color" format="color" />
konghaorui committed
55
        <!--右侧文字内容最大字数-->
konghaorui committed
56
        <attr name="pa_jump_tv_right_max_length" format="integer" />
konghaorui committed
57
        <!--文字内容最多行数-->
konghaorui committed
58
        <attr name="pa_jump_tv_max_line" format="integer" />
konghaorui committed
59
        <!--是否可以点击状态-->
konghaorui committed
60
        <attr name="pa_jump_tv_can_click" format="boolean" />
konghaorui committed
61
        <!--左边图片宽度-->
konghaorui committed
62
        <attr name="pa_jump_tv_left_icon_width" format="dimension" />
konghaorui committed
63
        <!--左边图片高度-->
konghaorui committed
64
        <attr name="pa_jump_tv_left_icon_hight" format="dimension" />
konghaorui committed
65
        <!--左侧小红点-->
konghaorui committed
66
        <attr name="pa_jump_tv_left_red_dot" format="boolean" />
konghaorui committed
67 68 69
    </declare-styleable>

    <!--圆角按钮-->
konghaorui committed
70
    <declare-styleable name="Platform_RoundCornerButton">
konghaorui committed
71
        <!--描边属性-->
konghaorui committed
72 73
        <attr name="pa_round_stroke_width" format="dimension" />
        <attr name="pa_round_stroke_color" format="color" />
konghaorui committed
74
        <!--按钮默认背景色-->
konghaorui committed
75
        <attr name="pa_round_btn_bg" format="color" />
konghaorui committed
76
        <!--手指按下,波纹色-->
konghaorui committed
77
        <attr name="pa_round_btn_active_bg" format="color" />
konghaorui committed
78
        <!--不可用背景色-->
konghaorui committed
79 80
        <attr name="pa_round_btn_disable_bg" format="color" />
        <attr name="pa_round_btn_disable_text_color" format="color" />
konghaorui committed
81
        <!--圆角大小-->
konghaorui committed
82
        <attr name="pa_round_btn_radio_size" format="dimension" />
konghaorui committed
83 84
    </declare-styleable>

konghaorui committed
85 86 87
    <declare-styleable name="Platform_CircleImageView">
        <attr name="pa_border_width" format="dimension" />
        <attr name="pa_border_color" format="color" />
konghaorui committed
88
    </declare-styleable>
konghaorui committed
89

konghaorui committed
90 91 92 93 94 95 96 97 98
    <declare-styleable name="CircleImageView_">
        <attr name="civ_border_width" format="dimension" />
        <attr name="civ_border_color" format="color" />
        <attr name="civ_border_overlay" format="boolean" />
        <attr name="civ_fill_color" format="color" />
    </declare-styleable>


    <!--弧度设置圆角Imageview-->
严久程 committed
99 100 101 102 103
<!--    <attr name="pa_borderRadius" format="dimension" />-->
<!--    <attr name="pa_type">-->
<!--        <enum name="pa_circle" value="0" />-->
<!--        <enum name="pa_round" value="1" />-->
<!--    </attr>-->
104

konghaorui committed
105
    <declare-styleable name="Platform_RoundImageView">
严久程 committed
106 107 108 109 110
        <attr name="pa_borderRadius"  format="dimension" />
        <attr name="pa_type" >
            <enum name="pa_circle" value="0" />
            <enum name="pa_round" value="1" />
        </attr>
konghaorui committed
111 112 113
    </declare-styleable>

    <!--九宫格解锁-->
konghaorui committed
114 115 116 117 118 119 120 121 122 123 124 125 126
    <declare-styleable name="Platform_Lock9View">
        <attr name="pa_lock9_nodeSrc" format="color|reference" />
        <attr name="pa_lock9_nodeOnSrc" format="color|reference" />
        <attr name="pa_lock9_nodeSize" format="dimension" />
        <attr name="pa_lock9_nodeAreaExpand" format="dimension" />
        <attr name="pa_lock9_nodeOnAnim" format="reference" />
        <attr name="pa_lock9_lineColor" format="color" />
        <attr name="pa_lock9_lineWidth" format="dimension" />
        <attr name="pa_lock9_padding" format="dimension" />
        <attr name="pa_lock9_spacing" format="dimension" />
        <attr name="pa_lock9_autoLink" format="boolean" />
        <attr name="pa_lock9_enableVibrate" format="boolean" />
        <attr name="pa_lock9_vibrateTime" format="integer" />
konghaorui committed
127 128 129 130

    </declare-styleable>

    <!--banner-->
konghaorui committed
131 132 133 134
    <declare-styleable name="Platform_Banner">
        <attr name="pa_delay_time" format="integer" />
        <attr name="pa_scroll_time" format="integer" />
        <attr name="pa_is_auto_play" format="boolean" />
konghaorui committed
135
        <!-- 适配项目中banner选中和未选中时,指示器图标大小宽度不一致的问题    true:选中和未选中一致  false:选中和未选中不一致-->
konghaorui committed
136
        <attr name="pa_is_selected_same_unselected" format="boolean" />
konghaorui committed
137
        <!-- 是否显示指示器布局:true 显示  false 不显示 默认显示 -->
konghaorui committed
138
        <attr name="pa_is_show_indicator" format="boolean" />
konghaorui committed
139
        <!-- 指示器布局是否显示在banner内部 : true 是  false 不是  默认是-->
konghaorui committed
140
        <attr name="pa_is_show_inside" format="boolean" />
konghaorui committed
141
        <!-- 样式不一致的时候,不一致的图标宽度-->
konghaorui committed
142 143 144 145 146 147 148 149 150 151 152 153 154
        <attr name="pa_indicator_different_width" format="dimension" />
        <attr name="pa_title_background" format="color|reference" />
        <attr name="pa_title_textcolor" format="color" />
        <attr name="pa_title_textsize" format="dimension" />
        <attr name="pa_title_height" format="dimension" />
        <attr name="pa_indicator_width" format="dimension" />
        <attr name="pa_indicator_height" format="dimension" />
        <attr name="pa_indicator_margin" format="dimension" />
        <attr name="pa_indicator_drawable_selected" format="reference" />
        <attr name="pa_indicator_drawable_unselected" format="reference" />
        <attr name="pa_banner_layout" format="reference" />
        <attr name="pa_banner_default_image" format="reference" />
        <attr name="pa_image_scale_type" format="enum">
konghaorui committed
155 156 157 158 159 160 161 162 163 164 165 166 167
            <enum name="center" value="0" />
            <enum name="center_crop" value="1" />
            <enum name="center_inside" value="2" />
            <enum name="fit_center" value="3" />
            <enum name="fit_end" value="4" />
            <enum name="fit_start" value="5" />
            <enum name="fit_xy" value="6" />
            <enum name="matrix" value="7" />
        </attr>
        <!--<attr name="indicator_animator" format="reference" />-->
        <!--<attr name="indicator_animator_reverse" format="reference" />-->
    </declare-styleable>

konghaorui committed
168 169 170 171 172 173
    <declare-styleable name="Platform_ProgressView">
        <attr name="pa_progressColor" format="color" />
        <attr name="pa_progressBackColor" format="color" />
        <attr name="pa_progressWidth" format="dimension" />
        <attr name="pa_textSize" format="dimension" />
        <attr name="pa_textColor" format="color" />
konghaorui committed
174 175
    </declare-styleable>

konghaorui committed
176 177 178 179 180 181 182
    <declare-styleable name="Platform_VerticalTabLayout">
        <attr name="pa_indicator_color" format="color" />
        <attr name="pa_tab_indicator_width" format="dimension" />
        <attr name="pa_tab_indicator_height" format="dimension" />
        <attr name="pa_indicator_corners" format="dimension" />
        <attr name="pa_tab_indicator_margin" format="dimension" />
        <attr name="pa_tab_indicator_gravity" format="enum">
konghaorui committed
183 184 185 186
            <enum name="left" value="3" />
            <enum name="right" value="5" />
            <enum name="fill" value="119" />
        </attr>
konghaorui committed
187 188
        <attr name="pa_tab_margin" format="dimension" />
        <attr name="pa_tab_mode" format="enum">
konghaorui committed
189 190 191
            <enum name="fixed" value="10" />
            <enum name="scrollable" value="11" />
        </attr>
konghaorui committed
192
        <attr name="pa_tab_height" format="dimension"/>
konghaorui committed
193 194
    </declare-styleable>
</resources>