- Added XML attribute suwDividerInsetEnd, and replaced suwDividerInset with suwDividerInsetStart. - Modified the themes so that the divider insets are set automatically. If the activity uses GLIF (v1) or material, and the list does not have icons, it should set app:suwDividerInsetStart="?attr/suwDividerInsetStartNoIcon" in the Glif[Recycler/List]Layout Test: ./gradlew connectedAndroidTest test Bug: 37677772 Change-Id: Ia4cb9954dd7e3c59cbc72db8937989557689061b
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2015 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<resources>
|
|
|
|
<!-- General -->
|
|
<!-- Calculated by (suw_glif_margin_sides - 4dp internal padding of button) -->
|
|
<dimen name="suw_glif_button_margin_end">36dp</dimen>
|
|
<!-- Calculated by (suw_glif_margin_sides - suw_glif_button_padding) -->
|
|
<dimen name="suw_glif_button_margin_start">24dp</dimen>
|
|
<dimen name="suw_glif_margin_sides">40dp</dimen>
|
|
|
|
<!-- Decor view (illustration or the header without illustration) -->
|
|
<dimen name="suw_decor_padding_top">256dp</dimen>
|
|
|
|
<!-- Illustration -->
|
|
<item name="suw_illustration_aspect_ratio" format="float" type="dimen">0</item>
|
|
<dimen name="suw_header_title_size">34sp</dimen>
|
|
|
|
<!-- Items -->
|
|
<dimen name="suw_items_icon_divider_inset">88dp</dimen>
|
|
<dimen name="suw_items_text_divider_inset">40dp</dimen>
|
|
<dimen name="suw_items_glif_icon_divider_inset">88dp</dimen>
|
|
<dimen name="suw_items_glif_text_divider_inset">40dp</dimen>
|
|
|
|
</resources>
|