Refine inputRange layout in output switcher

Bug: 154181365
Test: build pass
Change-Id: Idee9042af6b19a358938752d2ee72bae07eb092a
This commit is contained in:
Tim Peng
2020-04-16 14:09:53 +08:00
committed by tim peng
parent 5970337d26
commit 205846c9a2
3 changed files with 27 additions and 9 deletions

View File

@@ -511,10 +511,28 @@
<item name="android:background">?android:attr/colorBackgroundFloating</item>
</style>
<style name="SliceRowSliderStyle" parent="SliceRowStyle">
<style name="SliceRowSliderStyle">
<!-- 2dp start padding for the start icon -->
<item name="titleItemStartPadding">10dp</item>
<item name="titleItemEndPadding">0dp</item>
<!-- Padding between content and the start icon is 14dp -->
<item name="contentStartPadding">5dp</item>
<!-- Padding between content and end items is 16dp -->
<item name="contentEndPadding">16dp</item>
<!-- Both side margins of end item are 16dp -->
<item name="endItemStartPadding">0dp</item>
<item name="endItemEndPadding">24dp</item>
<!-- Both side margins of bottom divider are 12dp -->
<item name="bottomDividerStartPadding">12dp</item>
<item name="bottomDividerEndPadding">12dp</item>
<item name="actionDividerHeight">32dp</item>
<!-- Align text with slider -->
<item name="titleStartPadding">12dp</item>
<item name="subContentStartPadding">12dp</item>
<item name="titleStartPadding">6dp</item>
<item name="subContentStartPadding">6dp</item>
</style>
<style name="ContextualCardSliceViewStyle" parent="SliceViewStyle">