| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright 2018 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> |
| <declare-styleable name="SliceView"> |
| <!-- Color to use for any title text within the slice. --> |
| <attr name="titleColor" format="color" /> |
| <!-- Color to use for any other text within the slice. --> |
| <attr name="subtitleColor" format="color" /> |
| <!-- Color to use for tinting elements within the slice. Normally an app |
| providing a slice is able to specify a color to use for tinting, specifying |
| a tint color here will override the app supplied color. --> |
| <attr name="tintColor" format="color" /> |
| |
| <!-- Text size to use for title text in the header of the slice. --> |
| <attr name="headerTitleSize" format="dimension" /> |
| <!-- Text size to use for subtitle text in the header of the slice. --> |
| <attr name="headerSubtitleSize" format="dimension"/> |
| <!-- Vertical padding to use between header title text and header subtitle text. --> |
| <attr name="headerTextVerticalPadding" format="dimension" /> |
| |
| <!-- Text size to use for title text in a non-header row of the slice. --> |
| <attr name="titleSize" format="dimension" /> |
| <!-- Text size to use for subtitle text in a non-header row of the slice. --> |
| <attr name="subtitleSize" format="dimension" /> |
| <!-- Vertical padding to use between title text and subtitle text. --> |
| <attr name="textVerticalPadding" format="dimension" /> |
| |
| <!-- Text size to use for title text in a grid row of the slice. --> |
| <attr name="gridTitleSize" format="dimension" /> |
| <!-- Text size to use for the subtitle text in a grid row of the slice. --> |
| <attr name="gridSubtitleSize" format="dimension" /> |
| <!-- Vertical padding to use between title text and subtitle text in a grid cell. --> |
| <attr name="gridTextVerticalPadding" format="dimension" /> |
| <!-- A grid row with all images goes right to the edge of the view if it's the first or |
| last row of a slice. Use this to specify padding to apply to the top of the grid row in |
| this situation. --> |
| <attr name="gridTopPadding" format="dimension" /> |
| <!-- A grid row with all images goes right to the edge of the view if it's the first or |
| last row of a slice. Use this to specify padding to apply to the bottom of the grid row in |
| this situation. --> |
| <attr name="gridBottomPadding" format="dimension" /> |
| |
| <!-- To apply a style for all slice rows shown within an activity or app you |
| may set this in your app theme pointing to your custom RowView style.--> |
| <attr name="rowStyle" format="reference" /> |
| |
| <!-- Size of row view with two lines of text --> |
| <attr name="rowMaxHeight" format="dimension" /> |
| <!-- Size of range area in a row to fit a slider or progress bar --> |
| <attr name="rowRangeHeight" format="dimension" /> |
| <!-- Size of text area row with one line of text and then a range element--> |
| <attr name="rowRangeSingleTextHeight" format="dimension" /> |
| </declare-styleable> |
| |
| <!-- To apply a style for all slices shown within an activity or app you |
| may set this in your app theme pointing to your custom SliceView style.--> |
| <attr name="sliceViewStyle" format="reference" /> |
| |
| <declare-styleable name="RowStyle"> |
| <!-- Padding to the start edge of title items shown in the row. --> |
| <attr name="titleItemStartPadding" format="dimension" /> |
| <!-- Padding to the end edge of title items shown in the row. --> |
| <attr name="titleItemEndPadding" format="dimension" /> |
| |
| <!-- Padding to the start edge of the content in the row. --> |
| <attr name="contentStartPadding" format="dimension" /> |
| <!-- Padding to the end edge of the content in the row. --> |
| <attr name="contentEndPadding" format="dimension" /> |
| |
| <!-- Padding to the start edge of the title in the row. --> |
| <attr name="titleStartPadding" format="dimension" /> |
| <!-- Padding to the end edge of the title in the row. --> |
| <attr name="titleEndPadding" format="dimension" /> |
| |
| <!-- Padding to the start edge of the sub content in the row. --> |
| <attr name="subContentStartPadding" format="dimension" /> |
| <!-- Padding to the end edge of the sub content in the row. --> |
| <attr name="subContentEndPadding" format="dimension" /> |
| |
| <!-- Padding to the start edge of the collection of items shown at the end of the row. --> |
| <attr name="endItemStartPadding" format="dimension" /> |
| <!-- Padding to the end edge of the collection of items shown at the end of the row. --> |
| <attr name="endItemEndPadding" format="dimension" /> |
| |
| <!-- Padding to the start edge of the bottom divider in the row. --> |
| <attr name="bottomDividerStartPadding" format="dimension" /> |
| <!-- Padding to the end edge of the bottom divider in the row. --> |
| <attr name="bottomDividerEndPadding" format="dimension" /> |
| |
| <!-- Height to use for action divider in the row. --> |
| <attr name="actionDividerHeight" format="dimension"/> |
| |
| <!-- Width to use for inline SeekBar in the row. --> |
| <attr name="seekBarInlineWidth" format="dimension"/> |
| |
| <!-- Width to use for inline progress bar in the row. --> |
| <attr name="progressBarInlineWidth" format="dimension"/> |
| <!-- Padding to the start edge of the progress bar in the row. --> |
| <attr name="progressBarStartPadding" format="dimension" /> |
| <!-- Padding to the end edge of the progress bar in the row. --> |
| <attr name="progressBarEndPadding" format="dimension" /> |
| |
| <!-- Size of icon. --> |
| <attr name="iconSize" format="dimension" /> |
| </declare-styleable> |
| </resources> |