Merge "Apply new slice attributes to customize layout"
This commit is contained in:
committed by
Android (Google) Code Review
commit
1de961d9ef
@@ -476,4 +476,36 @@
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
|
||||
<style name="slice_view_style">
|
||||
<!-- 4dp start padding for the start icon -->
|
||||
<item name="android:paddingStart">4dp</item>
|
||||
|
||||
<!-- End margin of content without end items is 24dp.
|
||||
android:paddingEnd = 24 - 16(contentEndPadding) -->
|
||||
<item name="android:paddingEnd">8dp</item>
|
||||
|
||||
<item name="rowStyle">@style/slice_row_style</item>
|
||||
</style>
|
||||
|
||||
<style name="slice_row_style">
|
||||
<item name="titleItemEndPadding">0dp</item>
|
||||
|
||||
<!-- Padding between content and the start icon is 12dp. -->
|
||||
<item name="contentStartPadding">12dp</item>
|
||||
<!-- Padding between content and end items is 16dp. -->
|
||||
<item name="contentEndPadding">16dp</item>
|
||||
|
||||
<!-- Both side margins of end item are 16dp.
|
||||
endItemEndPadding = 16 - 8(android:paddingEnd) -->
|
||||
<item name="endItemStartPadding">16dp</item>
|
||||
<item name="endItemEndPadding">8dp</item>
|
||||
|
||||
<!-- Both side margins of bottom divider are 12dp.
|
||||
bottomDividerStartPadding = 12 - 4(android:paddingStart)
|
||||
bottomDividerEndPadding = 12 - 8(android:paddingEnd) -->
|
||||
<item name="bottomDividerStartPadding">8dp</item>
|
||||
<item name="bottomDividerEndPadding">4dp</item>
|
||||
|
||||
<item name="actionDividerHeight">32dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user