Adjust layout padding for SlicePreference

To make sure text align to other preferences. This CL also
update related style name.

Bug: 124234686
Test: Manual
Change-Id: I9df8ba15630fce5509a8c8a1cbc17f103fcc6481
This commit is contained in:
jackqdyulei
2019-02-11 12:26:18 -08:00
parent 1de961d9ef
commit e642ae67b9
2 changed files with 10 additions and 4 deletions

View File

@@ -31,7 +31,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
style="@style/slice_view_style"/>
style="@style/SliceViewStyle"/>
<!--dismissal view-->
<include layout="@layout/homepage_dismissal_view"/>

View File

@@ -454,6 +454,7 @@
<style name="Widget.SliceView.Settings">
<item name="titleSize">@*android:dimen/text_size_subhead_material</item>
<item name="rowStyle">@style/SliceRowStyle.Settings</item>
</style>
<style name="TextAppearance.DeferredSetupCardTitle">
@@ -476,7 +477,7 @@
<item name="android:textSize">14sp</item>
</style>
<style name="slice_view_style">
<style name="SliceViewStyle">
<!-- 4dp start padding for the start icon -->
<item name="android:paddingStart">4dp</item>
@@ -484,10 +485,10 @@
android:paddingEnd = 24 - 16(contentEndPadding) -->
<item name="android:paddingEnd">8dp</item>
<item name="rowStyle">@style/slice_row_style</item>
<item name="rowStyle">@style/SliceRowStyle</item>
</style>
<style name="slice_row_style">
<style name="SliceRowStyle">
<item name="titleItemEndPadding">0dp</item>
<!-- Padding between content and the start icon is 12dp. -->
@@ -508,4 +509,9 @@
<item name="actionDividerHeight">32dp</item>
</style>
<style name="SliceRowStyle.Settings">
<!-- Padding between content and the start icon is 8dp. -->
<item name="contentStartPadding">8dp</item>
</style>
</resources>