replace page indicator style, add data manager interface, etc.

This commit is contained in:
wangcongtao
2020-02-11 21:52:38 +08:00
parent 4f8b4bb714
commit 19156517ac
38 changed files with 1090 additions and 614 deletions

View File

@@ -3,6 +3,7 @@
<dimen name="module_apps_pager_marginTop">260px</dimen>
<dimen name="module_apps_indicator_height">5px</dimen>
<dimen name="module_apps_indicator_width">30px</dimen>
<dimen name="module_apps_indicator_interval">2.3px</dimen>
<dimen name="module_apps_indicator_marginBottom">103px</dimen>
<dimen name="module_apps_navigation_icon_width">120px</dimen>
<dimen name="module_apps_navigation_icon_height">120px</dimen>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="LinePageIndicator">
<!-- Whether or not the indicators should be centered. -->
<attr name="centered" />
<!-- Color of the unselected lines that represent the pages. -->
<attr name="unselectedColor" />
<!-- Color of the selected line that represents the current page. -->
<attr name="selectedColor" />
<!-- Width of each indicator line. -->
<attr name="lineWidth" format="dimension" />
<!-- Width of each indicator line's stroke. -->
<attr name="strokeWidth" />
<!-- Width of the gap between each indicator line. -->
<attr name="gapWidth" format="dimension" />
<!-- View background -->
<attr name="android:background" />
</declare-styleable>
</resources>

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="card_common_margin_left">@dimen/dp_15</dimen>
<dimen name="default_line_indicator_line_width">12dp</dimen>
<dimen name="default_line_indicator_gap_width">4dp</dimen>
<dimen name="default_line_indicator_stroke_width">1dp</dimen>
<color name="default_line_indicator_selected_color">#FF33B5E5</color>
<color name="default_line_indicator_unselected_color">#FFBBBBBB</color>
<bool name="default_line_indicator_centered">true</bool>
<declare-styleable name="ViewPagerIndicator">
<!-- Style of the circle indicator. -->
<attr name="vpiCirclePageIndicatorStyle" format="reference" />
<!-- Style of the icon indicator's views. -->
<attr name="vpiIconPageIndicatorStyle" format="reference" />
<!-- Style of the line indicator. -->
<attr name="vpiLinePageIndicatorStyle" format="reference" />
<!-- Style of the title indicator. -->
<attr name="vpiTitlePageIndicatorStyle" format="reference" />
<!-- Style of the tab indicator's tabs. -->
<attr name="vpiTabPageIndicatorStyle" format="reference" />
<!-- Style of the underline indicator. -->
<attr name="vpiUnderlinePageIndicatorStyle" format="reference" />
</declare-styleable>
</resources>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="PagerSlidingTabStripV2">
<attr name="pstsV2IndicatorColor" format="color" />
<attr name="pstsV2UnderlineColor" format="color" />
<attr name="pstsV2DividerColor" format="color" />
<attr name="pstsV2IndicatorHeight" format="dimension" />
<attr name="pstsV2UnderlineHeight" format="dimension" />
<attr name="pstsV2DividerPadding" format="dimension" />
<attr name="pstsV2TabPaddingLeftRight" format="dimension" />
<attr name="pstsV2ScrollOffset" format="dimension" />
<attr name="pstsV2TabBackground" format="reference" />
<attr name="pstsV2ShouldExpand" format="boolean" />
<attr name="pstsV2TextAllCaps" format="boolean" />
<attr name="pstsV2SelectedTabTextColor" format="color" />
<attr name="pstsV2TabTextColorValue" format="color" />
<attr name="pstsV2IndicatorMarginBottom" format="dimension" />
<attr name="pstsV2IndicatorMarginLeft" format="dimension" />
<attr name="pstsV2IndicatorMarginRight" format="dimension" />
<attr name="pstsV2IndicatorMode" format="enum">
<enum name="underline" value="-1" />
<enum name="shadow" value="1" />
<enum name="res" value="2" />
</attr>
<attr name="pstsV2IndicatorRes" format="reference" />
</declare-styleable>
</resources>