1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright 2018 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<resources>
19    <declare-styleable name="SliceView">
20        <!-- Color to use for any title text within the slice. -->
21        <attr name="titleColor" format="color" />
22        <!-- Color to use for any other text within the slice. -->
23        <attr name="subtitleColor" format="color" />
24        <!-- Color to use for tinting elements within the slice. Normally an app
25         providing a slice is able to specify a color to use for tinting, specifying
26         a tint color here will override the app supplied color. -->
27        <attr name="tintColor" format="color" />
28
29        <!-- Text size to use for title text in the header of the slice. -->
30        <attr name="headerTitleSize" format="dimension" />
31        <!-- Text size to use for subtitle text in the header of the slice. -->
32        <attr name="headerSubtitleSize" format="dimension"/>
33        <!-- Vertical padding to use between header title text and header subtitle text. -->
34        <attr name="headerTextVerticalPadding" format="dimension" />
35
36        <!-- Text size to use for title text in a non-header row of the slice. -->
37        <attr name="titleSize" format="dimension" />
38        <!-- Text size to use for subtitle text in a non-header row of the slice. -->
39        <attr name="subtitleSize" format="dimension" />
40        <!-- Vertical padding to use between title text and subtitle text. -->
41        <attr name="textVerticalPadding" format="dimension" />
42
43        <!-- Text size to use for title text in a grid row of the slice. -->
44        <attr name="gridTitleSize" format="dimension" />
45        <!-- Text size to use for the subtitle text in a grid row of the slice. -->
46        <attr name="gridSubtitleSize" format="dimension" />
47        <!-- Vertical padding to use between title text and subtitle text in a grid cell. -->
48        <attr name="gridTextVerticalPadding" format="dimension" />
49        <!-- A grid row with all images goes right to the edge of the view if it's the first or
50         last row of a slice. Use this to specify padding to apply to the top of the grid row in
51         this situation. -->
52        <attr name="gridTopPadding" format="dimension" />
53        <!-- A grid row with all images goes right to the edge of the view if it's the first or
54         last row of a slice. Use this to specify padding to apply to the bottom of the grid row in
55         this situation. -->
56        <attr name="gridBottomPadding" format="dimension" />
57    </declare-styleable>
58
59    <!-- To apply a style for all slices shown within an activity or app you
60         may set this in your app theme pointing to your custom SliceView style.-->
61    <attr name="sliceViewStyle" format="reference" />
62</resources>