Update fourcolor progress bar
Test: Manual. Existing tests pass Bug: 63074068 Change-Id: I52a1704c39a9a54f9a4e79f42d174a20ee96c310
This commit is contained in:
parent
a68744dc00
commit
83817ea033
|
@ -277,6 +277,7 @@
|
||||||
<style name="SuwBase.ProgressBarLarge" parent="@android:style/Widget.ProgressBar.Large" />
|
<style name="SuwBase.ProgressBarLarge" parent="@android:style/Widget.ProgressBar.Large" />
|
||||||
|
|
||||||
<style name="SuwFourColorIndeterminateProgressBar" parent="SuwBase.ProgressBarLarge">
|
<style name="SuwFourColorIndeterminateProgressBar" parent="SuwBase.ProgressBarLarge">
|
||||||
|
<item name="android:padding">@dimen/suw_glif_fourcolor_progress_bar_padding</item>
|
||||||
<item name="android:layout_gravity">center</item>
|
<item name="android:layout_gravity">center</item>
|
||||||
<item name="android:indeterminate">true</item>
|
<item name="android:indeterminate">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -26,37 +26,44 @@
|
||||||
<aapt:attr name="android:drawable">
|
<aapt:attr name="android:drawable">
|
||||||
<vector android:width="823dp" android:height="823dp" android:viewportHeight="823"
|
<vector android:width="823dp" android:height="823dp" android:viewportHeight="823"
|
||||||
android:viewportWidth="823">
|
android:viewportWidth="823">
|
||||||
<group android:name="blue1" android:translateX="411.5" android:translateY="411.5">
|
<group android:name="red" android:translateX="411.5" android:translateY="411.5">
|
||||||
<path android:name="blue1_path"
|
<path android:name="red_path"
|
||||||
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
||||||
android:strokeAlpha="1" android:strokeColor="#4688f1"
|
android:strokeAlpha="1" android:strokeColor="#ea4335"
|
||||||
android:strokeLineCap="round" android:strokeLineJoin="round"
|
android:strokeLineCap="round" android:strokeLineJoin="round"
|
||||||
android:strokeWidth="27" />
|
android:strokeWidth="27" />
|
||||||
</group>
|
</group>
|
||||||
<group android:name="blue2" android:translateX="411.5" android:translateY="411.5">
|
<group android:name="yellow" android:translateX="411.5" android:translateY="411.5">
|
||||||
<path android:name="blue2_path"
|
<path android:name="yellow_path"
|
||||||
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
||||||
android:strokeAlpha="1" android:strokeColor="#7dacf4"
|
android:strokeAlpha="1" android:strokeColor="#fbbc04"
|
||||||
android:strokeLineCap="round" android:strokeLineJoin="round"
|
android:strokeLineCap="round" android:strokeLineJoin="round"
|
||||||
android:strokeWidth="28" />
|
android:strokeWidth="28" />
|
||||||
</group>
|
</group>
|
||||||
<group android:name="blue3" android:translateX="411.5" android:translateY="411.5">
|
<group android:name="green" android:translateX="411.5" android:translateY="411.5">
|
||||||
<path android:name="blue3_path"
|
<path android:name="green_path"
|
||||||
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
||||||
android:strokeAlpha="1" android:strokeColor="#c7dbfb"
|
android:strokeAlpha="1" android:strokeColor="#34a853"
|
||||||
android:strokeLineCap="round" android:strokeLineJoin="round"
|
android:strokeLineCap="round" android:strokeLineJoin="round"
|
||||||
android:strokeWidth="29" />
|
android:strokeWidth="29" />
|
||||||
</group>
|
</group>
|
||||||
<group android:name="blue4" android:translateX="411.5" android:translateY="411.5">
|
<group android:name="blue" android:translateX="411.5" android:translateY="411.5">
|
||||||
<path android:name="blue4_path"
|
<path android:name="blue_path"
|
||||||
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
||||||
android:strokeAlpha="1" android:strokeColor="#e8f0fd"
|
android:strokeAlpha="1" android:strokeColor="#4285f4"
|
||||||
|
android:strokeLineCap="round" android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="30" />
|
||||||
|
</group>
|
||||||
|
<!-- gray -->
|
||||||
|
<group android:translateX="411.5" android:translateY="411.5">
|
||||||
|
<path android:pathData="M0 -395 C218,-395 395,-218 395,0 C395,218 218,395 0,395 C-218,395 -395,218 -395,0 C-395,-218 -218,-395 0,-395c "
|
||||||
|
android:strokeAlpha="1" android:strokeColor="#1f9aa0a6"
|
||||||
android:strokeLineCap="round" android:strokeLineJoin="round"
|
android:strokeLineCap="round" android:strokeLineJoin="round"
|
||||||
android:strokeWidth="30" />
|
android:strokeWidth="30" />
|
||||||
</group>
|
</group>
|
||||||
</vector>
|
</vector>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
<target android:name="blue1_path">
|
<target android:name="red_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -67,7 +74,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue1_path">
|
<target android:name="red_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -78,7 +85,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue1">
|
<target android:name="red">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
|
||||||
|
@ -89,7 +96,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue2_path">
|
<target android:name="yellow_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -100,7 +107,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue2_path">
|
<target android:name="yellow_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -111,7 +118,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue2">
|
<target android:name="yellow">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
|
||||||
|
@ -122,7 +129,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue3_path">
|
<target android:name="green_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -133,7 +140,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue3_path">
|
<target android:name="green_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -144,7 +151,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue3">
|
<target android:name="green">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<set android:ordering="together">
|
<set android:ordering="together">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
||||||
|
@ -158,7 +165,7 @@
|
||||||
</set>
|
</set>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue4_path">
|
<target android:name="blue_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -169,7 +176,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue4_path">
|
<target android:name="blue_path">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
|
||||||
|
@ -180,7 +187,7 @@
|
||||||
</objectAnimator>
|
</objectAnimator>
|
||||||
</aapt:attr>
|
</aapt:attr>
|
||||||
</target>
|
</target>
|
||||||
<target android:name="blue4">
|
<target android:name="blue">
|
||||||
<aapt:attr name="android:animation">
|
<aapt:attr name="android:animation">
|
||||||
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
<objectAnimator android:duration="1983" android:propertyName="rotation"
|
||||||
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
|
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
<style name="SuwBase.ProgressBarLarge" parent="@android:style/Widget.Material.ProgressBar.Large" />
|
<style name="SuwBase.ProgressBarLarge" parent="@android:style/Widget.Material.ProgressBar.Large" />
|
||||||
|
|
||||||
<style name="SuwFourColorIndeterminateProgressBar" parent="SuwBase.ProgressBarLarge">
|
<style name="SuwFourColorIndeterminateProgressBar" parent="SuwBase.ProgressBarLarge">
|
||||||
|
<item name="android:padding">@dimen/suw_glif_fourcolor_progress_bar_padding</item>
|
||||||
<item name="android:layout_gravity">center</item>
|
<item name="android:layout_gravity">center</item>
|
||||||
<item name="android:indeterminate">true</item>
|
<item name="android:indeterminate">true</item>
|
||||||
<item name="android:indeterminateDrawable">@drawable/suw_fourcolor_progress_bar</item>
|
<item name="android:indeterminateDrawable">@drawable/suw_fourcolor_progress_bar</item>
|
||||||
|
|
|
@ -137,6 +137,7 @@
|
||||||
<!-- The margin to compensate for the padding built-in to the widget itself -->
|
<!-- The margin to compensate for the padding built-in to the widget itself -->
|
||||||
<dimen name="suw_progress_bar_margin_vertical">-7dp</dimen>
|
<dimen name="suw_progress_bar_margin_vertical">-7dp</dimen>
|
||||||
<dimen name="suw_glif_progress_bar_margin_vertical">7dp</dimen>
|
<dimen name="suw_glif_progress_bar_margin_vertical">7dp</dimen>
|
||||||
|
<dimen name="suw_glif_fourcolor_progress_bar_padding">26dp</dimen>
|
||||||
|
|
||||||
<!-- Edit Text dimensions -->
|
<!-- Edit Text dimensions -->
|
||||||
<dimen name="suw_edit_text_min_height">56dp</dimen>
|
<dimen name="suw_edit_text_min_height">56dp</dimen>
|
||||||
|
|
Loading…
Reference in a new issue