• 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<!-- The collection of resources for theming the appearance of a device -->
18<!-- TODO: Resolving resource overlay for Q module updates. Remove when public.xml is
19    removed from DocumentsUIGoogle.
20    Add a new entry to DocumentsUIGoogle public.xml when adding new resource here.
21    Follow these steps to identify a new resource id for the resource.
22    1. Find last resource id for the particular type.
23       bool, string, etc.
24       Example: <public type="bool" name="pre_existing_bool" id="0x7f04001a" />
25       bool last resource id is 0x7f04001a
26       First  6 characters are an identifier for bool, so the id should be
27       0x7f04xxxx where xxxx is 001a+1 = 001b.
28    4. Add entry to public.xml
29       Example: <public type="bool" name="new_bool_config" id="0x7f04001b" />
30-->
31<resources xmlns:android="http://schemas.android.com/apk/res/android">
32
33    <overlayable name="DocumentsUICustomization">
34
35        <!-- START VENDOR CUSTOMIZATION -->
36        <policy type="product|system|vendor">
37            <!-- START THEME / STYLE -->
38            <item type="style" name="DocumentsTheme"/>
39            <!-- END THEME / STYLE -->
40
41            <!-- START COLOR -->
42            <item type="color" name="primary"/>
43            <item type="color" name="list_item_selected_background_color"/>
44            <item type="color" name="color_surface_header"/>
45            <!-- END COLOR -->
46
47            <!-- START DIMEN -->
48            <item type="dimen" name="grid_item_radius"/>
49            <item type="dimen" name="search_chip_radius"/>
50            <!-- END DIMEN -->
51
52            <!-- START DRAWABLE -->
53            <item type="drawable" name="ic_eject"/>
54            <item type="drawable" name="ic_root_download"/>
55            <item type="drawable" name="ic_sd_storage"/>
56            <item type="drawable" name="ic_root_smartphone"/>
57            <item type="drawable" name="root_list_selector"/>
58            <!-- END DRAWABLE -->
59
60            <!-- START BOOLEAN CONFIG -->
61            <item type="bool" name="config_button_all_caps"/>
62            <item type="bool" name="config_default_show_device_root"/>
63            <item type="bool" name="handle_view_downloads_intent"/>
64            <item type="bool" name="is_launcher_enabled"/>
65            <item type="bool" name="show_search_bar"/>
66            <!-- END BOOLEAN CONFIG -->
67
68            <!-- START STRING CONFIG -->
69            <item type="string" name="config_fontFamily"/>
70            <item type="string" name="config_fontFamilyMedium"/>
71            <item type="string" name="default_root_uri"/>
72            <item type="string" name="preferred_root_package"/>
73            <item type="string" name="trusted_quick_viewer_package"/>
74            <!-- END STRING CONFIG -->
75
76        </policy>
77        <!-- END VENDOR CUSTOMIZATION -->
78
79    </overlayable>
80
81</resources>
82