Add dot page indicator to preview screen pager.

Change-Id: I4fa5aba28ad20be17bd5fa8d3c6a06d8a9a4a64a
This commit is contained in:
Noah Wang
2016-01-13 16:55:07 -08:00
parent 99b7b12e19
commit 085028d7ee
6 changed files with 962 additions and 4 deletions

View File

@@ -100,6 +100,15 @@
<attr name="keywords" format="string" />
</declare-styleable>
<!-- For DotsPageIndicator -->
<declare-styleable name="DotsPageIndicator">
<attr name="dotDiameter" format="dimension" />
<attr name="dotGap" format="dimension" />
<attr name="animationDuration" format="integer" />
<attr name="pageIndicatorColor" format="color" />
<attr name="currentPageIndicatorColor" format="color" />
</declare-styleable>
<attr name="switchBarTheme" format="reference" />
<attr name="switchBarMarginStart" format="dimension" />
<attr name="switchBarMarginEnd" format="dimension" />

View File

@@ -358,4 +358,10 @@
<style name="SetupWizardStorageStyle" parent="@style/SuwThemeMaterial.Light">
<item name="android:colorAccent">#ff009688</item>
</style>
<style name="PreviewPagerPageIndicator">
<item name="dotGap">8dp</item>
<item name="pageIndicatorColor">@android:color/tertiary_text_light</item>
<item name="currentPageIndicatorColor">@android:color/primary_text_light</item>
</style>
</resources>