<?xml version="1.0" encoding="utf-8"?>
<resources>

    <attr name="sobotSrlStyle" format="reference" /><!--样式-->

    <attr name="sobotSrlDrawableSize" format="dimension" /><!--图片尺寸-->
    <attr name="sobotSrlDrawableArrowSize" format="dimension" /><!--箭头图片尺寸-->
    <attr name="sobotSrlDrawableProgressSize" format="dimension" /><!--箭头图片尺寸-->
    <attr name="sobotSrlDrawableMarginRight" format="dimension" /><!--图片和文字的间距-->
    <attr name="sobotSrlTextSizeTitle" format="dimension" /><!--标题字体-->
    <attr name="sobotSrlTextSizeTime" format="dimension" /><!--时间字体-->
    <attr name="sobotSrlFinishDuration" format="integer" /><!--完成时停留时间-->
    <attr name="sobotSrlPrimaryColor" format="color" /><!--主要颜色-->
    <attr name="sobotSrlAccentColor" format="color" /><!--强调颜色-->
    <attr name="sobotSrlDrawableArrow" format="reference" /><!--箭头图片-->
    <attr name="sobotSrlColorArrow" format="color" /><!--强调颜色-->
    <attr name="sobotSrlDrawableProgress" format="reference" /><!--转动图片-->
    <attr name="sobotSrlColorProgress" format="color" /><!--强调颜色-->
    <attr name="sobotSrlEnableHorizontalDrag" format="boolean" /><!--支持水平拖动-->

    <attr name="sobotSrlTextPulling" format="string" />
    <attr name="sobotSrlTextLoading" format="string" />
    <attr name="sobotSrlTextRelease" format="string" />
    <attr name="sobotSrlTextFinish" format="string" />
    <attr name="sobotSrlTextFailed" format="string" />
    <attr name="sobotSrlTextUpdate" format="string" />
    <attr name="sobotSrlTextSecondary" format="string" />
    <attr name="sobotSrlTextRefreshing" format="string" />
    <attr name="sobotSrlTextNothing" format="string" />

    <attr name="sobotSrlClassicsSpinnerStyle" format="enum">
        <enum name="Translate" value="0" /><!--平行移动-->
        <enum name="Scale" value="1" /><!--拉伸形变-->
        <enum name="FixedBehind" value="2" /><!--固定在背后-->
    </attr>

    <attr name="sobot_layout_srlSpinnerStyle" format="enum">
        <enum name="Translate" value="0" /><!--平行移动-->
        <enum name="Scale" value="1" /><!--拉伸形变-->
        <enum name="FixedBehind" value="2" /><!--固定在背后-->
        <enum name="FixedFront" value="3" /><!--固定在前面-->
        <enum name="MatchLayout" value="4" /><!--填满布局-->
    </attr>

    <declare-styleable name="SobotRefreshLayout">
        <attr name="android:clipChildren" />
        <attr name="android:clipToPadding" />
        <attr name="sobotSrlPrimaryColor" />
        <attr name="sobotSrlAccentColor" />
        <attr name="srlReboundDuration" format="integer" />
        <attr name="srlHeaderHeight" format="dimension" />
        <attr name="srlFooterHeight" format="dimension" />
        <attr name="srlHeaderInsetStart" format="dimension" />
        <attr name="srlFooterInsetStart" format="dimension" />
        <attr name="srlDragRate" format="float" />
        <attr name="srlHeaderMaxDragRate" format="float" />
        <attr name="srlFooterMaxDragRate" format="float" />
        <attr name="srlHeaderTriggerRate" format="float" />
        <attr name="srlFooterTriggerRate" format="float" />
        <attr name="srlEnableRefresh" format="boolean" />
        <attr name="srlEnableLoadMore" format="boolean" />
        <attr name="srlEnableHeaderTranslationContent" format="boolean" />
        <attr name="srlEnableFooterTranslationContent" format="boolean" />
        <attr name="srlHeaderTranslationViewId" format="reference" />
        <attr name="srlFooterTranslationViewId" format="reference" />
        <attr name="srlEnablePreviewInEditMode" format="boolean" />
        <attr name="srlEnableAutoLoadMore" format="boolean" />
        <attr name="srlEnableOverScrollBounce" format="boolean" />
        <attr name="srlEnablePureScrollMode" format="boolean" />
        <attr name="srlEnableNestedScrolling" format="boolean" />
        <attr name="srlEnableScrollContentWhenLoaded" format="boolean" />
        <attr name="srlEnableScrollContentWhenRefreshed" format="boolean" />
        <attr name="srlEnableLoadMoreWhenContentNotFull" format="boolean" />
        <attr name="srlEnableFooterFollowWhenLoadFinished" format="boolean" />
        <attr name="srlEnableFooterFollowWhenNoMoreData" format="boolean" />
        <attr name="srlEnableClipHeaderWhenFixedBehind" format="boolean" />
        <attr name="srlEnableClipFooterWhenFixedBehind" format="boolean" />
        <attr name="srlEnableOverScrollDrag" format="boolean" />
        <attr name="srlDisableContentWhenRefresh" format="boolean" />
        <attr name="srlDisableContentWhenLoading" format="boolean" />
        <attr name="srlFixedHeaderViewId" format="reference" />
        <attr name="srlFixedFooterViewId" format="reference" />
    </declare-styleable>

    <declare-styleable name="SobotRefreshLayout_Layout">
        <attr name="sobot_layout_srlSpinnerStyle" />
        <attr name="layout_srlBackgroundColor" format="color" />
    </declare-styleable>

    <style name="SobotRefreshStyle">
        <item name="sobotSrlPrimaryColor">@android:color/holo_blue_dark</item>
        <item name="sobotSrlAccentColor">@android:color/white</item>
        <item name="srlReboundDuration">300</item>
        <item name="srlHeaderHeight">100dp</item>
        <item name="srlFooterHeight">60dp</item>
        <item name="srlHeaderInsetStart">0dp</item>
        <item name="srlFooterInsetStart">0dp</item>
        <item name="srlDragRate">0.5</item>
        <item name="srlHeaderMaxDragRate">2.5</item>
        <item name="srlFooterMaxDragRate">2.5</item>
        <item name="srlHeaderTriggerRate">1</item>
        <item name="srlFooterTriggerRate">1</item>
        <!--<item name="srlEnableRefresh">true</item>-->
        <!--<item name="srlEnableLoadMore">true</item>-->
        <!--<item name="srlEnableHeaderTranslationContent">true</item>-->
        <!--<item name="srlEnableFooterTranslationContent">true</item>-->
        <!--<item name="srlHeaderTranslationViewId">-1</item>-->
        <!--<item name="srlFooterTranslationViewId">-1</item>-->
        <item name="srlEnablePreviewInEditMode">true</item>
        <item name="srlEnableAutoLoadMore">true</item>
        <item name="srlEnableOverScrollDrag">false</item>
        <item name="srlEnableOverScrollBounce">true</item>
        <item name="srlEnablePureScrollMode">false</item>
        <item name="srlEnableNestedScrolling">true</item>
        <item name="srlEnableScrollContentWhenLoaded">true</item>
        <item name="srlEnableScrollContentWhenRefreshed">true</item>
        <item name="srlEnableLoadMoreWhenContentNotFull">true</item>
        <!--<item name="srlEnableFooterFollowWhenLoadFinished" format="boolean"/>-->
        <item name="srlEnableFooterFollowWhenNoMoreData">false</item>
        <item name="srlEnableClipHeaderWhenFixedBehind">true</item>
        <item name="srlEnableClipFooterWhenFixedBehind">true</item>
        <item name="srlDisableContentWhenRefresh">false</item>
        <item name="srlDisableContentWhenLoading">false</item>
        <!--<item name="srlFixedHeaderViewId" format="reference"/>-->
        <!--<item name="srlFixedFooterViewId" format="reference"/>-->
    </style>

    <declare-styleable name="SobotClassicsFooter">
        <attr name="sobotSrlClassicsSpinnerStyle" />
        <attr name="sobotSrlPrimaryColor" />
        <attr name="sobotSrlAccentColor" />
        <attr name="sobotSrlFinishDuration" />
        <attr name="sobotSrlTextSizeTitle" />
        <attr name="sobotSrlColorArrow" />
        <attr name="sobotSrlDrawableArrow" />
        <attr name="sobotSrlDrawableProgress" />
        <attr name="sobotSrlColorProgress" />
        <attr name="sobotSrlDrawableMarginRight" />
        <attr name="sobotSrlDrawableSize" />
        <attr name="sobotSrlDrawableArrowSize" />
        <attr name="sobotSrlDrawableProgressSize" />

        <attr name="sobotSrlTextPulling" />
        <attr name="sobotSrlTextRelease" />
        <attr name="sobotSrlTextLoading" />
        <attr name="sobotSrlTextRefreshing" />
        <attr name="sobotSrlTextFinish" />
        <attr name="sobotSrlTextFailed" />
        <attr name="sobotSrlTextNothing" />

    </declare-styleable>

    <declare-styleable name="SobotClassicsHeader">
        <attr name="sobotSrlClassicsSpinnerStyle" />
        <attr name="sobotSrlPrimaryColor" />
        <attr name="sobotSrlAccentColor" />
        <attr name="sobotSrlFinishDuration" />
        <attr name="sobotSrlDrawableArrow" />
        <attr name="sobotSrlColorArrow" />
        <attr name="sobotSrlColorProgress" />
        <attr name="sobotSrlDrawableProgress" />
        <attr name="sobotSrlDrawableMarginRight" />
        <attr name="sobotSrlDrawableSize" />
        <attr name="sobotSrlDrawableArrowSize" />
        <attr name="sobotSrlDrawableProgressSize" />
        <attr name="sobotSrlTextSizeTitle" />
        <attr name="sobotSrlTextSizeTime" />
        <attr name="sobotSrlTextTimeMarginTop" format="dimension" />
        <attr name="sobotSrlEnableLastTime" format="boolean" />

        <attr name="sobotSrlTextPulling" />
        <attr name="sobotSrlTextLoading" />
        <attr name="sobotSrlTextRelease" />
        <attr name="sobotSrlTextFinish" />
        <attr name="sobotSrlTextFailed" />
        <attr name="sobotSrlTextUpdate" />
        <attr name="sobotSrlTextSecondary" />
        <attr name="sobotSrlTextRefreshing" />

    </declare-styleable>

    <declare-styleable name="SobotSubsamplingScaleImageView">
        <attr name="sobot_src" format="reference"/>
        <attr name="sobot_assetName" format="string"/>
        <attr name="sobot_panEnabled" format="boolean"/>
        <attr name="sobot_zoomEnabled" format="boolean"/>
        <attr name="sobot_quickScaleEnabled" format="boolean"/>
        <attr name="sobot_tileBackgroundColor" format="color"/>
    </declare-styleable>




    <!--圆形-->
    <attr name="sobot_round_as_circle" format="boolean" />
    <!--全部圆角半径-->
    <attr name="sobot_round_corner" format="integer|dimension" />
    <!--针对各个角的半径-->
    <attr name="sobot_round_corner_top_left" format="integer|dimension" />
    <attr name="sobot_round_corner_top_right" format="integer|dimension" />
    <attr name="sobot_round_corner_bottom_left" format="integer|dimension" />
    <attr name="sobot_round_corner_bottom_right" format="integer|dimension" />

    <!--描边颜色／半径-->
    <attr name="sobot_stroke_color" format="color|reference" />
    <attr name="sobot_stroke_width" format="integer|dimension" />

    <!-- 是否剪裁 RCLayout 的背景 -->
    <attr name="sobot_clip_background" format="boolean" />

    <!--真正用于解析的属性-->
    <declare-styleable name="SobotRCAttrs">
        <attr name="sobot_round_as_circle" />
        <attr name="sobot_round_corner" />
        <attr name="sobot_round_corner_top_left" />
        <attr name="sobot_round_corner_top_right" />
        <attr name="sobot_round_corner_bottom_left" />
        <attr name="sobot_round_corner_bottom_right" />
        <attr name="sobot_stroke_color" />
        <attr name="sobot_stroke_width" />
        <attr name="sobot_clip_background" />
    </declare-styleable>

    <!--假体：用于提示-->
    <declare-styleable name="sobot_RCRelativeLayout">
        <attr name="sobot_round_as_circle" />
        <attr name="sobot_round_corner" />
        <attr name="sobot_round_corner_top_left" />
        <attr name="sobot_round_corner_top_right" />
        <attr name="sobot_round_corner_bottom_left" />
        <attr name="sobot_round_corner_bottom_right" />
        <attr name="sobot_stroke_color" />
        <attr name="sobot_stroke_width" />
        <attr name="sobot_clip_background" />
    </declare-styleable>

    <declare-styleable name="sobot_RCImageView">
        <attr name="sobot_round_as_circle" />
        <attr name="sobot_round_corner" />
        <attr name="sobot_round_corner_top_left" />
        <attr name="sobot_round_corner_top_right" />
        <attr name="sobot_round_corner_bottom_left" />
        <attr name="sobot_round_corner_bottom_right" />
        <attr name="sobot_stroke_color" />
        <attr name="sobot_stroke_width" />
        <attr name="sobot_clip_background" />
    </declare-styleable>


    <declare-styleable name="Sobot_CalendarView">

        <attr name="calendar_padding" format="dimension" /><!--日历内部左右padding-->
        <attr name="calendar_padding_left" format="dimension" /><!--日历内部左padding-->
        <attr name="calendar_padding_right" format="dimension" /><!--日历内部右padding-->


        <attr name="week_background" format="color" /><!--周背景-->
        <attr name="week_line_background" format="color" /><!--线条颜色-->
        <attr name="week_text_color" format="color" /><!--周栏字体颜色-->
        <attr name="week_text_size" format="dimension" /><!--周栏字体大小-->
        <attr name="week_line_margin" format="dimension" /><!--线条margin-->

        <attr name="month_view" format="string" /><!--完全自定义月视图-->
        <attr name="week_view" format="string" /> <!--完全自定义周视图-->
        <attr name="year_view" format="string" /> <!--完全自定义年视图-->
        <attr name="week_bar_height" format="dimension" /> <!--星期栏的高度-->
        <attr name="week_bar_view" format="string" /> <!--如果需要的话使用自定义星期栏-->

        <attr name="scheme_text" format="string" />
        <attr name="day_text_size" format="dimension" />
        <attr name="lunar_text_size" format="dimension" />
        <attr name="calendar_height" format="dimension" />
        <attr name="calendar_match_parent" format="boolean" /> <!-- 全屏日历 -->
        <attr name="scheme_text_color" format="color" />
        <attr name="scheme_month_text_color" format="color" />
        <attr name="scheme_lunar_text_color" format="color" />
        <attr name="scheme_theme_color" format="color" />

        <attr name="selected_theme_color" format="color" />
        <attr name="selected_text_color" format="color" />
        <attr name="selected_lunar_text_color" format="color" />

        <attr name="current_day_text_color" format="color" />
        <attr name="current_day_lunar_text_color" format="color" />
        <attr name="current_month_text_color" format="color" />
        <attr name="other_month_text_color" format="color" />
        <attr name="current_month_lunar_text_color" format="color" />
        <attr name="other_month_lunar_text_color" format="color" />


        <!-- 年视图相关 -->
        <attr name="year_view_month_text_size" format="dimension" />
        <attr name="year_view_day_text_size" format="dimension" />
        <attr name="year_view_month_text_color" format="color" />
        <attr name="year_view_current_day_text_color" format="color" />
        <attr name="year_view_day_text_color" format="color" />
        <attr name="year_view_select_text_color" format="color" />
        <attr name="year_view_scheme_color" format="color" />
        <attr name="year_view_background" format="color" />
        <attr name="year_view_month_height" format="dimension" />
        <attr name="year_view_week_height" format="dimension" />
        <attr name="year_view_week_text_size" format="dimension" />
        <attr name="year_view_week_text_color" format="color" />

        <attr name="year_view_padding" format="dimension" />
        <attr name="year_view_padding_left" format="dimension" />
        <attr name="year_view_padding_right" format="dimension" />

        <attr name="year_view_month_padding_top" format="dimension" />
        <attr name="year_view_month_padding_left" format="dimension" />
        <attr name="year_view_month_padding_right" format="dimension" />
        <attr name="year_view_month_padding_bottom" format="dimension" />

        <!--日期范围-->
        <attr name="min_year" format="integer" />
        <attr name="max_year" format="integer" />
        <attr name="min_year_month" format="integer" />
        <attr name="max_year_month" format="integer" />
        <attr name="min_year_day" format="integer" />
        <attr name="max_year_day" format="integer" />


        <!--月视图是否可滚动-->
        <attr name="month_view_scrollable" format="boolean" />
        <!--周视图是否可滚动-->
        <attr name="week_view_scrollable" format="boolean" />
        <!--年视图是否可滚动-->
        <attr name="year_view_scrollable" format="boolean" />

        <!-- 月份显示模式 -->
        <attr name="month_view_show_mode">
            <enum name="mode_all" value="0" />
            <enum name="mode_only_current" value="1" />
            <enum name="mode_fix" value="2" />
        </attr>

        <!-- 自定义周起始 -->
        <attr name="week_start_with">
            <enum name="sun" value="1" />
            <enum name="mon" value="2" />
            <enum name="sat" value="7" />
        </attr>

        <!-- 自定义选择模式 -->
        <attr name="select_mode">
            <enum name="default_mode" value="0" />
            <enum name="single_mode" value="1" />
            <enum name="range_mode" value="2" />
            <enum name="multi_mode" value="3" />
        </attr>

        <!-- when select_mode = multi_mode -->
        <attr name="max_multi_select_size" format="integer" />

        <!-- when select_mode = range_mode -->
        <attr name="min_select_range" format="integer" />
        <attr name="max_select_range" format="integer" />

        <!-- auto select day -->
        <attr name="month_view_auto_select_day">
            <enum name="first_day_of_month" value="0" />
            <enum name="last_select_day" value="1" />
            <enum name="last_select_day_ignore_current" value="2" />
        </attr>
    </declare-styleable>


    <declare-styleable name="Sobot_CalendarLayout">
        <attr name="default_status">
            <enum name="expand" value="0" />
            <enum name="shrink" value="1" />
        </attr>


        <!-- 手势模式 -->
        <attr name="gesture_mode">
            <enum name="default_mode" value="0" />
            <!--<enum name="only_calendar" value="1" />-->
            <enum name="disabled" value="2" />
        </attr>

        <attr name="calendar_show_mode">
            <enum name="both_month_week_view" value="0" />
            <enum name="only_week_view" value="1" />
            <enum name="only_month_view" value="2" />
        </attr>
        <attr name="calendar_content_view_id" format="integer" />
    </declare-styleable>
</resources>