attrs.xml 3.32 KB
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <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>


    <declare-styleable name="SettingItemView">
        <attr name="setting_title" format="string" />
        <attr name="setting_subTitle" format="string" />
        <attr name="setting_contentTxt" format="string" />
        <attr name="setting_icon" format="reference" />
        <attr name="setting_imgTxt_color" format="reference" />
        <attr name="setting_showArrow" format="boolean" />
        <attr name="setting_showDivider" format="boolean" />
        <attr name="setting_showTips" format="boolean" />
        <attr name="setting_showContentTv" format="boolean" />
    </declare-styleable>

    <declare-styleable name="InformationItemView">
        <attr name="info_title" format="string" />
        <attr name="info_subTitle" format="string" />
        <attr name="info_icon" format="reference" />
        <attr name="info_showIcon" format="boolean" />
        <attr name="info_showRightIcon" format="boolean" />
        <attr name="info_showDivider" format="boolean" />
    </declare-styleable>


    <!--自定义标题栏属性-->
    <declare-styleable name="CustomActionBar">
        <!--标题文字-->
        <attr name="action_title" format="string" />
        <!--最右边文字-->
        <attr name="action_txt_right" format="string" />
        <!--返回键资源id-->
        <attr name="action_iv_back" format="reference" />
        <!--最右边图片资源id-->
        <attr name="action_iv_right" format="reference" />
        <!--是否显示返回键-->
        <attr name="action_iv_back_show" format="boolean" />
        <!--是否显示标题右边图片-->
        <attr name="action_show_iv_title_right" format="boolean" />
        <!--是否显示最右边图片-->
        <attr name="action_show_iv_right" format="boolean" />
        <!--是否显示最右边文字-->
        <attr name="action_show_txt_right" format="boolean" />
    </declare-styleable>

    <!--自定义MLImageView的属性-->
    <declare-styleable name="MLImageView">
        <attr name="press_alpha" format="integer" />
        <attr name="press_color" format="color" />
        <attr name="radius" format="dimension" />
        <attr name="border_width" format="dimension" />
        <attr name="border_color" format="color" />
        <attr name="shape_type" format="enum">
            <enum name="round" value="0" />
            <enum name="rectangle" value="1" />
        </attr>
    </declare-styleable>

    <!--侧滑返回-->
    <declare-styleable name="SwipeBackLayout">
        <attr name="edge_size" format="dimension" />
        <attr name="edge_flag">
            <enum name="left" value="0" />
            <enum name="right" value="1" />
            <enum name="bottom" value="2" />
            <enum name="all" value="3" />
        </attr>
        <attr name="shadow_left" format="reference" />
        <attr name="shadow_right" format="reference" />
        <attr name="shadow_bottom" format="reference" />
    </declare-styleable>

    <attr name="SwipeBackLayoutStyle" format="reference" />

</resources>