• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2020 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  ~ An example uxr_config.xml file would look like:
18  ~ <Mapping xmlns:app="http://schemas.android.com/apk/res-auto">
19  ~     <ListConfig
20  ~         app:id="@+id/call_log_list_uxr_config"
21  ~         app:maxLength="10"
22  ~         app:message="@string/call_log_scrolling_limited_message"
23  ~     />
24  ~ </Mapping>
25  -->
26<resources>
27    <!-- Global container of uxr related app configs -->
28    <declare-styleable name="CarUxRestrictionsAppConfig"/>
29    <!-- The mapping of lists to their uxr related override values. -->
30    <declare-styleable name="CarUxRestrictionsAppConfig_Mapping"/>
31
32    <!-- Uxr related overrides for a specific list -->
33    <declare-styleable name="CarUxRestrictionsAppConfig_ListConfig">
34        <!-- Id of ListConfig, used to differentiate them -->
35        <attr name="id" format="reference"/>
36        <!-- Used to limit the length of a list. -->
37        <attr name="maxLength" format="integer"/>
38        <!-- Used to educate users why their scrolling experience is limited. -->
39        <attr name="message" format="string"/>
40    </declare-styleable>
41</resources>