summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2018-03-21 22:25:01 +0000
committerMaurice Lam <yukl@google.com>2018-03-21 22:25:37 +0000
commitfe2343b05e8f91c364dcb9f8d2596e3a469a142e (patch)
treefe3d3541a2bdcb7b1983600dc7595ffc2628e95f
parentb5a2d11440eab84ef1ae1f44fb29b0690038c8e5 (diff)
downloadsetupwizard-fe2343b05e8f91c364dcb9f8d2596e3a469a142e.tar.gz
Revert "Update fourcolor progress bar"
This reverts commit b5a2d11440eab84ef1ae1f44fb29b0690038c8e5. Reason for revert: UX likes the old blue progress bar better Bug: 63074068 Change-Id: Ide8c1117e4d4aae3016046641a1ff9880dec0f81
-rw-r--r--library/gingerbread/res/values/styles.xml1
-rw-r--r--library/main/res/drawable-v21/suw_fourcolor_progress_bar.xml61
-rw-r--r--library/main/res/values-v21/styles.xml1
-rw-r--r--library/main/res/values/dimens.xml1
4 files changed, 27 insertions, 37 deletions
diff --git a/library/gingerbread/res/values/styles.xml b/library/gingerbread/res/values/styles.xml
index 130925d..241f037 100644
--- a/library/gingerbread/res/values/styles.xml
+++ b/library/gingerbread/res/values/styles.xml
@@ -277,7 +277,6 @@
<style name="SuwBase.ProgressBarLarge" parent="@android:style/Widget.ProgressBar.Large" />
<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:indeterminate">true</item>
</style>
diff --git a/library/main/res/drawable-v21/suw_fourcolor_progress_bar.xml b/library/main/res/drawable-v21/suw_fourcolor_progress_bar.xml
index 9d54141..2ac35ee 100644
--- a/library/main/res/drawable-v21/suw_fourcolor_progress_bar.xml
+++ b/library/main/res/drawable-v21/suw_fourcolor_progress_bar.xml
@@ -26,44 +26,37 @@
<aapt:attr name="android:drawable">
<vector android:width="823dp" android:height="823dp" android:viewportHeight="823"
android:viewportWidth="823">
- <group android:name="red" android:translateX="411.5" android:translateY="411.5">
- <path android:name="red_path"
+ <group android:name="blue1" android:translateX="411.5" android:translateY="411.5">
+ <path android:name="blue1_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="#ea4335"
+ android:strokeAlpha="1" android:strokeColor="#4688f1"
android:strokeLineCap="round" android:strokeLineJoin="round"
android:strokeWidth="27" />
</group>
- <group android:name="yellow" android:translateX="411.5" android:translateY="411.5">
- <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:strokeAlpha="1" android:strokeColor="#fbbc04"
+ <group android:name="blue2" android:translateX="411.5" android:translateY="411.5">
+ <path android:name="blue2_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="#7dacf4"
android:strokeLineCap="round" android:strokeLineJoin="round"
android:strokeWidth="28" />
</group>
- <group android:name="green" android:translateX="411.5" android:translateY="411.5">
- <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:strokeAlpha="1" android:strokeColor="#34a853"
+ <group android:name="blue3" android:translateX="411.5" android:translateY="411.5">
+ <path android:name="blue3_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="#c7dbfb"
android:strokeLineCap="round" android:strokeLineJoin="round"
android:strokeWidth="29" />
</group>
- <group android:name="blue" android:translateX="411.5" android:translateY="411.5">
- <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: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"
+ <group android:name="blue4" android:translateX="411.5" android:translateY="411.5">
+ <path android:name="blue4_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="#e8f0fd"
android:strokeLineCap="round" android:strokeLineJoin="round"
android:strokeWidth="30" />
</group>
</vector>
</aapt:attr>
- <target android:name="red_path">
+ <target android:name="blue1_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -74,7 +67,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="red_path">
+ <target android:name="blue1_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -85,7 +78,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="red">
+ <target android:name="blue1">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="rotation"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
@@ -96,7 +89,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="yellow_path">
+ <target android:name="blue2_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -107,7 +100,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="yellow_path">
+ <target android:name="blue2_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -118,7 +111,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="yellow">
+ <target android:name="blue2">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="rotation"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
@@ -129,7 +122,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="green_path">
+ <target android:name="blue3_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -140,7 +133,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="green_path">
+ <target android:name="blue3_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -151,7 +144,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="green">
+ <target android:name="blue3">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator android:duration="1983" android:propertyName="rotation"
@@ -165,7 +158,7 @@
</set>
</aapt:attr>
</target>
- <target android:name="blue_path">
+ <target android:name="blue4_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathStart"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -176,7 +169,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="blue_path">
+ <target android:name="blue4_path">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="trimPathEnd"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="1"
@@ -187,7 +180,7 @@
</objectAnimator>
</aapt:attr>
</target>
- <target android:name="blue">
+ <target android:name="blue4">
<aapt:attr name="android:animation">
<objectAnimator android:duration="1983" android:propertyName="rotation"
android:repeatCount="infinite" android:valueFrom="0" android:valueTo="355"
diff --git a/library/main/res/values-v21/styles.xml b/library/main/res/values-v21/styles.xml
index 450adab..a77c32c 100644
--- a/library/main/res/values-v21/styles.xml
+++ b/library/main/res/values-v21/styles.xml
@@ -45,7 +45,6 @@
<style name="SuwBase.ProgressBarLarge" parent="@android:style/Widget.Material.ProgressBar.Large" />
<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:indeterminate">true</item>
<item name="android:indeterminateDrawable">@drawable/suw_fourcolor_progress_bar</item>
diff --git a/library/main/res/values/dimens.xml b/library/main/res/values/dimens.xml
index 8281013..be6b248 100644
--- a/library/main/res/values/dimens.xml
+++ b/library/main/res/values/dimens.xml
@@ -139,7 +139,6 @@
<!-- 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_glif_progress_bar_margin_vertical">7dp</dimen>
- <dimen name="suw_glif_fourcolor_progress_bar_padding">26dp</dimen>
<!-- Edit Text dimensions -->
<dimen name="suw_edit_text_min_height">56dp</dimen>