Created
June 29, 2016 09:51
-
-
Save griajobag/41f6d43836008422e1f36020f762f8f2 to your computer and use it in GitHub Desktop.
smooth progressbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="colorPrimary">@color/colorPrimary</item> | |
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
<item name="colorAccent">@color/colorAccent</item> | |
<item name="spbStyle">@style/SmoothProgressBar</item> | |
<item name="cpbStyle">@style/CircularProgressBar</item> | |
</style> | |
<style name="ProgressBar.Horizontal" parent="@android:style/Widget.Holo.ProgressBar.Horizontal"> | |
</style> | |
<style name="GPlusProgressBar" parent="SmoothProgressBar"> | |
<item name="spb_stroke_separator_length">12dp</item> | |
<item name="spb_sections_count">4</item> | |
<item name="spb_speed">0.7</item> | |
<item name="spb_interpolator">spb_interpolator_linear</item> | |
<item name="spb_colors">@array/gplus_colors</item> | |
</style> | |
<style name="GNowProgressBar" parent="SmoothProgressBar"> | |
<item name="spb_stroke_separator_length">8dp</item> | |
<item name="spb_sections_count">2</item> | |
<item name="spb_speed">1.7</item> | |
<item name="spb_progressiveStart_speed">2</item> | |
<item name="spb_progressiveStop_speed">3.4</item> | |
<item name="spb_interpolator">spb_interpolator_acceleratedecelerate</item> | |
<item name="spb_mirror_mode">true</item> | |
<item name="spb_reversed">true</item> | |
<item name="spb_colors">@array/gplus_colors</item> | |
<item name="spb_progressiveStart_activated">true</item> | |
<item name="spb_generate_background_with_colors">false</item> | |
</style> | |
<style name="GradientProgressBar" parent="SmoothProgressBar"> | |
<item name="spb_stroke_separator_length">0dp</item> | |
<item name="spb_sections_count">3</item> | |
<item name="spb_speed">1.7</item> | |
<item name="android:interpolator">@android:anim/decelerate_interpolator</item> | |
<item name="spb_colors">@array/gplus_colors</item> | |
<item name="spb_gradients">true</item> | |
</style> | |
<style name="PocketProgressBar" parent="SmoothProgressBar"> | |
<item name="spb_stroke_separator_length">4dp</item> | |
<item name="spb_sections_count">4</item> | |
<item name="spb_speed">1</item> | |
<item name="android:interpolator">@anim/pocket_interpolator</item> | |
<item name="spb_colors">@array/pocket_bar_colors</item> | |
<item name="spb_progressiveStart_activated">true</item> | |
<item name="spb_generate_background_with_colors">false</item> | |
</style> | |
<style name="BaseTheme" parent="android:Theme.Holo"> | |
</style> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment