<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="my_progress" parent="Widget.AppCompat.ProgressBar.Horizontal">
        <item name="android:textSize">12sp</item>
    </style>
    <style name="CustomDialog">
        <!--窗口背景色透明-->
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <!--是否浮在界面上-->
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowFrame">@null</item>
        <!-- 是否允许背景变暗 --> <!--背景是否模糊显示-->
        <item name="android:backgroundDimEnabled">false</item>
        <!--是否有标题-->
        <item name="android:windowNoTitle">false</item>
    </style>
    <!--//弹窗Dialog样式-->
    <style name="dialogStyle" parent="@android:style/Theme.Dialog">
        <item name="android:windowFrame">@null</item> <!--边框-->
        <item name="android:windowIsFloating">true</item> <!--是否浮现在activity之上-->
        <item name="android:windowIsTranslucent">true</item> <!--半透明-->
        <item name="android:windowNoTitle">true</item> <!--无标题-->
        <item name="android:background">@android:color/transparent</item> <!--背景透明-->
        <item name="android:windowBackground">@android:color/transparent</item> <!--背景透明-->
        <item name="android:backgroundDimEnabled">true</item> <!--模糊-->
        <item name="android:backgroundDimAmount">0.5</item>  <!--背景透明度-->
    </style>
    <style name="dialog_bottom" parent="@android:style/Animation.Dialog">
        <item name="android:windowEnterAnimation">@anim/anim_bottom_in</item>
        <item name="android:windowExitAnimation">@anim/anim_bottom_out</item>
    </style>
    <!-- dialog底部弹出菜单动画 -->
    <style name="bottom_menu_animation" parent="android:Animation">
        <item name="@android:windowEnterAnimation">@anim/bottom_menu_enter</item>
        <item name="@android:windowExitAnimation">@anim/bottom_menu_exit</item>
    </style>

    <!-- dialog中间弹出菜单动画 -->
    <style name="center_scale_animation" parent="android:Animation">
        <item name="@android:windowEnterAnimation">@anim/left_enter</item>
        <item name="@android:windowExitAnimation">@anim/left_exit</item>
    </style>

    <style name="CustomDialogStyle" parent="@android:style/Theme.Dialog">
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>   使得对话框背景色变黑
        <item name="android:background">@android:color/transparent</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:backgroundDimAmount">0.5</item>
    </style>
    <attr name="tl_divider_color" format="color" />
    <attr name="tl_divider_padding" format="dimension" />
    <attr name="tl_divider_width" format="dimension" />
    <attr name="tl_indicator_anim_duration" format="integer" />
    <attr name="tl_indicator_anim_enable" format="boolean" />
    <attr name="tl_indicator_bounce_enable" format="boolean" />
    <attr name="tl_indicator_color" format="color" />
    <attr name="tl_indicator_corner_radius" format="dimension" />
    <attr name="tl_indicator_gravity" format="enum">
        <enum name="TOP" value="48" />
        <enum name="BOTTOM" value="80" />
    </attr>
    <attr name="tl_indicator_height" format="dimension" />
    <attr name="tl_indicator_margin_bottom" format="dimension" />
    <attr name="tl_indicator_margin_left" format="dimension" />
    <attr name="tl_indicator_margin_right" format="dimension" />
    <attr name="tl_indicator_margin_top" format="dimension" />
    <attr name="tl_indicator_style" format="enum">
        <enum name="NORMAL" value="0" />
        <enum name="TRIANGLE" value="1" />
        <enum name="BLOCK" value="2" />
    </attr>
    <attr name="tl_indicator_width" format="dimension" />
    <attr name="tl_indicator_width_equal_title" format="boolean" />
    <attr name="tl_tab_padding" format="dimension" />
    <attr name="tl_tab_space_equal" format="boolean" />
    <attr name="tl_tab_width" format="dimension" />
    <attr name="tl_textAllCaps" format="boolean" />
    <attr name="tl_textBold" format="enum">
        <enum name="NONE" value="0" />
        <enum name="SELECT" value="1" />
        <enum name="BOTH" value="2" />
    </attr>
    <attr name="tl_textSelectColor" format="color" />
    <attr name="tl_textUnselectColor" format="color" />
    <attr name="tl_textsize" format="dimension" />
    <attr name="tl_textsizeSelected" format="dimension" />
    <attr name="tl_underline_color" format="color" />
    <attr name="tl_underline_gravity" format="enum">
        <enum name="TOP" value="48" />
        <enum name="BOTTOM" value="80" />
    </attr>
    <attr name="tl_underline_height" format="dimension" />
    <declare-styleable name="CommonTabLayout">
        <!-- indicator -->
        <attr name="tl_indicator_color" />
        <attr name="tl_indicator_height" />
        <attr name="tl_indicator_width" />
        <attr name="tl_indicator_margin_left" />
        <attr name="tl_indicator_margin_top" />
        <attr name="tl_indicator_margin_right" />
        <attr name="tl_indicator_margin_bottom" />
        <attr name="tl_indicator_corner_radius" />
        <attr name="tl_indicator_gravity" />
        <attr name="tl_indicator_style" />
        <attr name="tl_indicator_anim_enable" />
        <attr name="tl_indicator_anim_duration" />
        <attr name="tl_indicator_bounce_enable" />

        <!-- underline -->
        <attr name="tl_underline_color" />
        <attr name="tl_underline_height" />
        <attr name="tl_underline_gravity" />

        <!-- divider -->
        <attr name="tl_divider_color" />
        <attr name="tl_divider_width" />
        <attr name="tl_divider_padding" />

        <!-- tab -->
        <attr name="tl_tab_padding" />
        <attr name="tl_tab_space_equal" />
        <attr name="tl_tab_width" />

        <!-- title -->
        <attr name="tl_textsize" />
        <attr name="tl_textsizeSelected" />
        <attr name="tl_textSelectColor" />
        <attr name="tl_textUnselectColor" />
        <attr name="tl_textBold" />
        <attr name="tl_textAllCaps" />

        <!-- icon -->
        <!-- 设置icon宽度 -->
        <attr name="tl_iconWidth" format="dimension" />
        <!-- 设置icon高度 -->
        <attr name="tl_iconHeight" format="dimension" />
        <!-- 设置icon是否可见 -->
        <attr name="tl_iconVisible" format="boolean" />
        <!-- 设置icon显示位置,对应Gravity中常量值 -->
        <attr name="tl_iconGravity" format="enum">
            <enum name="LEFT" value="3" />
            <enum name="TOP" value="48" />
            <enum name="RIGHT" value="5" />
            <enum name="BOTTOM" value="80" />
        </attr>
        <!-- 设置icon与文字间距 -->
        <attr name="tl_iconMargin" format="dimension" />

    </declare-styleable>
    <declare-styleable name="MsgView">
        <!-- 圆角矩形背景色 -->
        <attr name="mv_backgroundColor" format="color" />
        <!-- 圆角弧度,单位dp-->
        <attr name="mv_cornerRadius" format="dimension" />
        <!-- 圆角弧度,单位dp-->
        <attr name="mv_strokeWidth" format="dimension" />
        <!-- 圆角边框颜色-->
        <attr name="mv_strokeColor" format="color" />
        <!-- 圆角弧度是高度一半-->
        <attr name="mv_isRadiusHalfHeight" format="boolean" />
        <!-- 圆角矩形宽高相等,取较宽高中大值-->
        <attr name="mv_isWidthHeightEqual" format="boolean" />
    </declare-styleable>
    <declare-styleable name="SegmentTabLayout">
        <!-- indicator -->
        <attr name="tl_indicator_color" />
        <attr name="tl_indicator_height" />
        <attr name="tl_indicator_margin_left" />
        <attr name="tl_indicator_margin_top" />
        <attr name="tl_indicator_margin_right" />
        <attr name="tl_indicator_margin_bottom" />
        <attr name="tl_indicator_corner_radius" />
        <attr name="tl_indicator_anim_enable" />
        <attr name="tl_indicator_anim_duration" />
        <attr name="tl_indicator_bounce_enable" />

        <!-- divider -->
        <attr name="tl_divider_color" />
        <attr name="tl_divider_width" />
        <attr name="tl_divider_padding" />

        <!-- tab -->
        <attr name="tl_tab_padding" />
        <attr name="tl_tab_space_equal" />
        <attr name="tl_tab_width" />

        <!-- title -->
        <attr name="tl_textsize" />
        <attr name="tl_textSelectColor" />
        <attr name="tl_textUnselectColor" />
        <attr name="tl_textBold" />
        <attr name="tl_textAllCaps" />

        <attr name="tl_bar_color" format="color" />
        <attr name="tl_bar_stroke_color" format="color" />
        <attr name="tl_bar_stroke_width" format="dimension" />

    </declare-styleable>
    <declare-styleable name="SlidingTabLayout">
        <!-- indicator -->
        <attr name="tl_indicator_color" />
        <attr name="tl_indicator_height" />
        <attr name="tl_indicator_width" />
        <attr name="tl_indicator_margin_left" />
        <attr name="tl_indicator_margin_top" />
        <attr name="tl_indicator_margin_right" />
        <attr name="tl_indicator_margin_bottom" />
        <attr name="tl_indicator_corner_radius" />
        <attr name="tl_indicator_gravity" />
        <attr name="tl_indicator_style" />
        <attr name="tl_indicator_width_equal_title" />

        <!-- underline -->
        <attr name="tl_underline_color" />
        <attr name="tl_underline_height" />
        <attr name="tl_underline_gravity" />

        <!-- divider -->
        <attr name="tl_divider_color" />
        <attr name="tl_divider_width" />
        <attr name="tl_divider_padding" />

        <!-- tab -->
        <attr name="tl_tab_padding" />
        <attr name="tl_tab_space_equal" />
        <attr name="tl_tab_width" />

        <!-- title -->
        <attr name="tl_textsize" />
        <attr name="tl_textSelectColor" />
        <attr name="tl_textUnselectColor" />
        <attr name="tl_textBold" />
        <attr name="tl_textAllCaps" />

    </declare-styleable>

    <style name="AYPrimaryButton">
        <item name="android:background">@drawable/shape_primary_button_normal</item>
        <item name="android:layout_height">@dimen/dp_50</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:gravity">center</item>
        <item name="android:paddingStart">@dimen/dp_15</item>
        <item name="android:paddingEnd">@dimen/dp_15</item>
    </style>
    <style name="AYSecondaryButton">
        <item name="android:background">@drawable/shape_disable_button_normal</item>
        <item name="android:layout_height">@dimen/dp_50</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:textColor">@color/col_8D0</item>
        <item name="android:gravity">center</item>
        <item name="android:paddingStart">@dimen/dp_15</item>
        <item name="android:paddingEnd">@dimen/dp_15</item>
    </style>

    <!-- 自定义默认二维码扫描界面的主题. -->
    <style name="XQRCodeTheme.Custom">
        <item name="ViewfinderViewStyle">@style/ViewfinderView.Custom</item>
    </style>

    <style name="ViewfinderView.Custom">
        <item name="inner_corner_color">@color/col_25C</item>
        <item name="inner_corner_width">@dimen/dp_6</item>
        <item name="inner_scan_bitmap_tint">@color/col_25C</item>
        <item name="inner_scan_speed">@dimen/dp_4</item>
        <item name="inner_scan_animation_interval">25</item>
<!--        <item name="inner_scan_bitmap">@mipmap/ic_xqr_code_scan</item>-->
    </style>

</resources>