- 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
37 lines
1.2 KiB
XML
37 lines
1.2 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>
|
|
|
|
<attr name="suwHasStableIds" format="boolean|reference" />
|
|
|
|
<declare-styleable name="SuwRecyclerItemAdapter">
|
|
<attr name="android:colorBackground" />
|
|
<attr name="android:selectableItemBackground" />
|
|
<attr name="selectableItemBackground" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="SuwRecyclerMixin">
|
|
<attr name="android:entries" />
|
|
<attr name="suwDividerInset" />
|
|
<attr name="suwDividerInsetEnd" />
|
|
<attr name="suwDividerInsetStart" />
|
|
<attr name="suwHasStableIds" />
|
|
</declare-styleable>
|
|
|
|
</resources>
|