• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<resources>
18    <declare-styleable name="PercentageBarChart">
19        <!-- Background color -->
20        <attr name="emptyColor" format="color" />
21        <!-- Minimum tick width for each slice in the bar chart. -->
22        <attr name="minTickWidth" format="dimension" />
23    </declare-styleable>
24
25    <declare-styleable name="ChartView">
26        <!-- optimal width of the chart -->
27        <attr name="optimalWidth" format="dimension" />
28        <!-- how to weight extra space beyond optimal width -->
29        <attr name="optimalWidthWeight" format="float" />
30    </declare-styleable>
31
32    <declare-styleable name="ChartSweepView">
33        <attr name="sweepDrawable" format="reference" />
34        <attr name="followAxis">
35            <enum name="horizontal" value="0" />
36            <enum name="vertical" value="1" />
37        </attr>
38        <attr name="neighborMargin" format="dimension" />
39        <attr name="labelSize" format="dimension" />
40        <attr name="labelTemplate" format="reference" />
41        <attr name="labelColor" format="color" />
42        <attr name="safeRegion" format="dimension" />
43    </declare-styleable>
44
45    <declare-styleable name="ChartGridView">
46        <attr name="primaryDrawable" format="reference" />
47        <attr name="secondaryDrawable" format="reference" />
48        <attr name="borderDrawable" format="reference" />
49        <attr name="android:textColor" />
50        <attr name="android:textAppearance" />
51    </declare-styleable>
52
53    <attr name="apnPreferenceStyle" format="reference" />
54
55    <attr name="slicePreferenceStyle" format="reference" />
56
57    <attr name="cardPreferenceStyle" format="reference" />
58
59    <attr name="footerPreferenceStyle" format="reference" />
60
61    <declare-styleable name="FixedLineSummaryPreference">
62        <attr name="summaryLineCount" format="integer" />
63    </declare-styleable>
64
65    <!-- For Search -->
66    <declare-styleable name="Preference">
67        <!-- Synonyms for search results -->
68        <attr name="keywords" format="string" />
69        <!-- Whether or not the preference is searchable, by default it's true. -->
70        <attr name="searchable" format="boolean" />
71        <!-- Classname of a PreferenceController corresponding to the preference -->
72        <attr name="controller" format="string" />
73        <!-- {@code true} when the controller declared represents a slice from {@link android.app.SettingsSliceContract} -->
74        <attr name="platform_slice" format="boolean" />
75        <!-- customized subtitle if it's an unavailable slice -->
76        <attr name="unavailableSliceSubtitle" format="string" />
77    </declare-styleable>
78
79    <declare-styleable name="PreferenceScreen">
80        <!-- Determines if static preferences defined in addStaticPreferences are added before or after the radio buttons -->
81        <attr name="staticPreferenceLocation">
82            <enum name="prepend" value="0" />
83            <enum name="append" value="1" />
84        </attr>
85    </declare-styleable>
86
87    <!-- For DotsPageIndicator -->
88    <declare-styleable name="DotsPageIndicator">
89        <attr name="dotDiameter" format="dimension" />
90        <attr name="dotGap" format="dimension" />
91        <attr name="animationDuration" format="integer" />
92        <attr name="pageIndicatorColor" format="color" />
93        <attr name="currentPageIndicatorColor" format="color" />
94    </declare-styleable>
95
96    <!-- For ConversationMessageView -->
97    <declare-styleable name="ConversationMessageView">
98        <attr name="incoming" format="boolean" />
99        <attr name="messageText" format="reference" />
100        <attr name="timestampText" format="reference" />
101        <attr name="iconText" format="reference" />
102        <attr name="iconTextColor" format="reference|color" />
103        <attr name="iconBackgroundColor" format="reference|color" />
104    </declare-styleable>
105
106    <attr name="switchBarTheme" format="reference" />
107    <attr name="switchBarMarginStart" format="dimension" />
108    <attr name="switchBarMarginEnd" format="dimension" />
109    <attr name="switchBarBackgroundColor" format="color" />
110    <attr name="switchBarBackgroundActivatedColor" format="color" />
111    <attr name="switchBarRestrictionIcon" format="reference" />
112
113    <attr name="preferenceBackgroundColor" format="color" />
114
115    <!-- Confirm device credentials screen -->
116    <attr name="confirmDeviceCredentialsSideMargin" format="dimension" />
117    <attr name="confirmDeviceCredentialsTopMargin" format="dimension" />
118
119    <declare-styleable name="WorkPreference">
120        <attr name="forWork" format="boolean" />
121    </declare-styleable>
122
123    <declare-styleable name="VideoPreference">
124        <attr name="animation" format="reference" />
125        <attr name="preview" format="reference" />
126    </declare-styleable>
127
128    <!-- For AspectRatioFrameLayout -->
129    <declare-styleable name="AspectRatioFrameLayout">
130        <attr name="aspectRatio" format="float" />
131    </declare-styleable>
132
133    <declare-styleable name="ListWithEntrySummaryPreference">
134        <!-- Summaries of entry -->
135        <attr name="entrySummaries" format="reference" />
136    </declare-styleable>
137
138    <!-- For UsageView -->
139    <declare-styleable name="UsageView">
140        <attr name="android:colorAccent" />
141        <attr name="sideLabels" format="reference" />
142        <attr name="bottomLabels" format="reference" />
143        <attr name="textColor" format="color" />
144        <attr name="android:gravity" />
145    </declare-styleable>
146
147    <!-- For DonutView -->
148    <declare-styleable name="DonutView">
149        <attr name="meterBackgroundColor" format="color" />
150        <attr name="meterConsumedColor" format="color" />
151        <attr name="applyColorAccent" format="boolean" />
152        <attr name="showPercentString" format="boolean" />
153        <attr name="thickness" format="dimension" />
154    </declare-styleable>
155
156    <!-- For Face enroll accessibility toggle -->
157    <declare-styleable name="FaceEnrollAccessibilityToggle">
158        <attr name="messageText" format="reference" />
159    </declare-styleable>
160
161    <!-- For TwoStatesButtonPreference -->
162    <declare-styleable name="TwoStateButtonPreference">
163        <attr name="textOn" format="reference" />
164        <attr name="textOff" format="reference" />
165    </declare-styleable>
166
167    <attr name="twoStateButtonPreferenceStyle" format="reference" />
168
169    <attr name="fingerprint_layout_theme" format="reference" />
170    <attr name="face_layout_theme" format="reference" />
171    <attr name="ic_menu_moreoverflow" format="reference" />
172    <attr name="side_margin" format="reference|dimension" />
173    <attr name="wifi_signal_color" format="reference" />
174</resources>
175