Merge "Leverage the panel title font size of non-first row" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6ea346edfe
@@ -27,7 +27,7 @@
|
|||||||
<androidx.slice.widget.SliceView
|
<androidx.slice.widget.SliceView
|
||||||
android:id="@+id/slice_view"
|
android:id="@+id/slice_view"
|
||||||
android:theme="@style/Theme.Settings.ContextualCard"
|
android:theme="@style/Theme.Settings.ContextualCard"
|
||||||
style="@style/ContextualCardSliceViewStyle"
|
style="@style/Widget.SliceView.ContextualCard"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
<androidx.slice.widget.SliceView
|
<androidx.slice.widget.SliceView
|
||||||
android:id="@+id/slice_view"
|
android:id="@+id/slice_view"
|
||||||
android:theme="@style/Theme.Settings.ContextualCard"
|
android:theme="@style/Theme.Settings.ContextualCard"
|
||||||
style="@style/ContextualCardSliceViewStyle"
|
style="@style/Widget.SliceView.ContextualCard"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<androidx.slice.widget.SliceView
|
<androidx.slice.widget.SliceView
|
||||||
android:id="@+id/slice_view"
|
android:id="@+id/slice_view"
|
||||||
style="@style/SliceViewStyle"
|
style="@style/Widget.SliceView.Panel"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<androidx.slice.widget.SliceView
|
<androidx.slice.widget.SliceView
|
||||||
android:id="@+id/slice_view"
|
android:id="@+id/slice_view"
|
||||||
style="@style/SliceViewSliderStyle"
|
style="@style/Widget.SliceView.Panel.Slider"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="0dp"
|
android:paddingStart="0dp"
|
||||||
|
@@ -498,20 +498,20 @@
|
|||||||
|
|
||||||
<style name="Widget.SliceView.Settings">
|
<style name="Widget.SliceView.Settings">
|
||||||
<item name="titleSize">@*android:dimen/text_size_subhead_material</item>
|
<item name="titleSize">@*android:dimen/text_size_subhead_material</item>
|
||||||
<item name="rowStyle">@style/SliceRowStyle.Settings</item>
|
<item name="rowStyle">@style/SliceRow.Settings</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SliceViewStyle">
|
<style name="Widget.SliceView.Panel">
|
||||||
<item name="rowStyle">@style/SliceRowStyle</item>
|
<item name="titleSize">16sp</item>
|
||||||
|
<item name="rowStyle">@style/SliceRow</item>
|
||||||
<item name="android:background">?android:attr/colorBackgroundFloating</item>
|
<item name="android:background">?android:attr/colorBackgroundFloating</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SliceViewSliderStyle">
|
<style name="Widget.SliceView.Panel.Slider">
|
||||||
<item name="rowStyle">@style/SliceRowSliderStyle</item>
|
<item name="rowStyle">@style/SliceRow.Slider</item>
|
||||||
<item name="android:background">?android:attr/colorBackgroundFloating</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SliceRowSliderStyle">
|
<style name="SliceRow.Slider">
|
||||||
<!-- 2dp start padding for the start icon -->
|
<!-- 2dp start padding for the start icon -->
|
||||||
<item name="titleItemStartPadding">10dp</item>
|
<item name="titleItemStartPadding">10dp</item>
|
||||||
<item name="titleItemEndPadding">0dp</item>
|
<item name="titleItemEndPadding">0dp</item>
|
||||||
@@ -535,11 +535,12 @@
|
|||||||
<item name="subContentStartPadding">6dp</item>
|
<item name="subContentStartPadding">6dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="ContextualCardSliceViewStyle" parent="SliceViewStyle">
|
<style name="Widget.SliceView.ContextualCard">
|
||||||
|
<item name="rowStyle">@style/SliceRow</item>
|
||||||
<item name="android:background">@color/contextual_card_background</item>
|
<item name="android:background">@color/contextual_card_background</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SliceRowStyle">
|
<style name="SliceRow">
|
||||||
<!-- 2dp start padding for the start icon -->
|
<!-- 2dp start padding for the start icon -->
|
||||||
<item name="titleItemStartPadding">2dp</item>
|
<item name="titleItemStartPadding">2dp</item>
|
||||||
<item name="titleItemEndPadding">0dp</item>
|
<item name="titleItemEndPadding">0dp</item>
|
||||||
@@ -560,7 +561,7 @@
|
|||||||
<item name="actionDividerHeight">32dp</item>
|
<item name="actionDividerHeight">32dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SliceRowStyle.Settings">
|
<style name="SliceRow.Settings">
|
||||||
<!-- Padding between content and the start icon is 8dp -->
|
<!-- Padding between content and the start icon is 8dp -->
|
||||||
<item name="contentStartPadding">8dp</item>
|
<item name="contentStartPadding">8dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user