summaryrefslogtreecommitdiff
path: root/library/gingerbread/res/layout
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2017-04-21 14:19:58 -0700
committerMaurice Lam <yukl@google.com>2017-04-24 14:19:58 -0700
commit52b85e4fa2f56e9f1562d7a93ca1a33a3d409015 (patch)
treebce1eb62e81f1c78f7f118df4cd19aef3762d12e /library/gingerbread/res/layout
parent1a8259d4fb0a29ca334ac8728ef9ac9e4241f056 (diff)
downloadsetupwizard-52b85e4fa2f56e9f1562d7a93ca1a33a3d409015.tar.gz
Polish UX of expandable switch
- Padding from the expandable arrow is now 4dp - Arrow is pushed down 2.5dp (by modifying the drawable) to align with the text - Switch and the switch divider is now fixed 36dp from top rather than vertically aligned Bug: 37576453 Test: ./gradlew connectedAndroidTest test Change-Id: Ibb3028d3bb17ca9d054911e4ff27098a200af0da
Diffstat (limited to 'library/gingerbread/res/layout')
-rw-r--r--library/gingerbread/res/layout/suw_items_expandable_switch.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/library/gingerbread/res/layout/suw_items_expandable_switch.xml b/library/gingerbread/res/layout/suw_items_expandable_switch.xml
index 91e482d..2b98a9f 100644
--- a/library/gingerbread/res/layout/suw_items_expandable_switch.xml
+++ b/library/gingerbread/res/layout/suw_items_expandable_switch.xml
@@ -94,7 +94,8 @@
android:id="@+id/suw_items_switch_divider"
android:layout_width="1dp"
android:layout_height="@dimen/suw_switch_divider_height"
- android:layout_gravity="center_vertical"
+ android:layout_gravity="top"
+ android:layout_marginTop="@dimen/suw_switch_divider_padding_top"
android:background="?android:attr/listDivider" />
<android.support.v7.widget.SwitchCompat
@@ -102,6 +103,8 @@
style="@style/SuwSwitchStyle.Divided"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_gravity="center_vertical" />
+ android:layout_gravity="top"
+ android:gravity="top"
+ android:paddingTop="@dimen/suw_switch_padding_top" />
</LinearLayout>