1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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<resources>
17    <dimen name="account_selector_popup_width">400dip</dimen>
18
19    <!-- Initial height of transparent space above QuickContacts -->
20    <dimen name="quickcontact_starting_empty_height">150dp</dimen>
21    <!-- Initial size of QuickContact's title size -->
22    <dimen name="quickcontact_maximum_title_size">36dp</dimen>
23    <!-- When QC is uncollapsed, the title has this much margin on its left, right and bottom -->
24    <dimen name="quickcontact_title_initial_margin">16dp</dimen>
25    <!-- The ratio of width:height for the contact's photo in landscape -->
26    <item name="quickcontact_landscape_photo_ratio" type="dimen" format="float">0.7</item>
27    <!-- How far QuickContacts can be dragged and released from the top of the window before we dismiss it. -->
28    <dimen name="quickcontact_dismiss_distance_on_release">40dp</dimen>
29    <!-- How far QuickContacts can be dragged from the top of the window before we dismiss it. -->
30    <dimen name="quickcontact_dismiss_distance_on_scroll">100dp</dimen>
31    <!-- When first flinging QuickContacts towards the top of the window if the fling is
32        predicted to scroll past the window top by less than this amount, then QuickContacts
33        snaps to the top of the window. -->
34    <dimen name="quickcontact_snap_to_top_slop_height">33dp</dimen>
35
36    <!-- Padding of the rounded plus/minus/expand/collapse buttons in the editor  -->
37    <dimen name="editor_round_button_padding_left">16dip</dimen>
38    <dimen name="editor_round_button_padding_right">16dip</dimen>
39    <dimen name="editor_round_button_padding_top">16dip</dimen>
40    <dimen name="editor_round_button_padding_bottom">16dip</dimen>
41
42    <!-- Minimum height of a row in the Editor -->
43    <dimen name="editor_min_line_item_height">48dip</dimen>
44
45    <!-- Width of the delete button (X) in the raw contact editor -->
46    <dimen name="editor_delete_button_width">48dp</dimen>
47
48    <!-- The height and width of the delete button should be the same size as an editor row -->
49    <dimen name="editor_delete_button_size">@dimen/editor_min_line_item_height</dimen>
50
51    <!-- Top margin applied to mime-type icons inside the editor. This is needed to give the
52        appearance that the icons are top aligned with the text, since visible text doesn't
53        start at the very top of TextViews. -->
54    <dimen name="editor_kind_icon_top_margin">14dp</dimen>
55
56    <!-- RHS padding added to spinners in the editor. This separates the spinner text from the
57        spinner graphic since b/18194928 causes the spinner to always be on the RHS.
58        In LTR mode this shouldn't have an observable affect. We set paddingRight instead of
59        drawablePadding since the spinner graphic is not a normal drawable.  -->
60    <dimen name="editor_spinner_right_padding_workaround">24dip</dimen>
61
62    <!-- Size of input form text inside the contact editor -->
63    <dimen name="editor_form_text_size">16sp</dimen>
64
65    <!-- Width and height of the mime-type icons inside the editor -->
66    <dimen name="editor_kind_icon_size">24dp</dimen>
67
68    <!-- Total width of data-kind icon, including its start and end padding -->
69    <dimen name="editor_kind_icon_total_width">68dp</dimen>
70
71    <!-- Padding below every editor view, such as LabeledEditorView. This value is chosen
72        to give 32dp of apparent padding between EditText's in the Raw Contact Editor. -->
73    <dimen name="editor_padding_between_editor_views">15dp</dimen>
74
75    <!-- Padding below every readonly editor view. This value is chosen to give 32dp of apparent padding
76        between TextView's in the readonly Raw Contact Editor. -->
77    <dimen name="editor_padding_between_read_only_editor_views">25dp</dimen>
78
79    <!-- Padding above and below the photo editor. This value is chosen to give 32dp of apparent
80        padding between TextView's and the photo's ImageView. -->
81    <dimen name="editor_padding_around_read_only_photo_editor">28dp</dimen>
82
83    <!-- Padding below the photo editor. This value is larger than
84        editor_padding_between_editor_views, since ImageView's don't have space between the bottom
85        of their visual bottom, like an EditText does. -->
86    <dimen name="editor_padding_below_photo">21dp</dimen>
87
88    <!-- Width of the Type-Label in the Editor -->
89    <dimen name="editor_type_label_width">150dip</dimen>
90
91    <!-- Width of the drop down that appears when you click on the Type-Label spinner in the editor -->
92    <dimen name="editor_type_label_dropdown_width">150dp</dimen>
93
94    <!-- Left padding of the label in the add field button for the contact editor -->
95    <dimen name="editor_add_field_label_left_padding">16dip</dimen>
96
97    <!-- Width and height of the expanded contact photo on the contact detail page -->
98    <dimen name="detail_contact_photo_expanded_size">400dip</dimen>
99
100    <!-- This is the minimum amount of space to leave underneath an expanded contact detail
101         photo -->
102    <dimen name="expanded_photo_height_offset">100dip</dimen>
103
104    <!-- Minimum width for the photo action popup options -->
105    <dimen name="photo_action_popup_min_width">300dip</dimen>
106
107    <!-- Top and bottom padding for a contact detail item -->
108    <dimen name="detail_item_vertical_margin">8dip</dimen>
109
110    <!-- Minimum height of a row in the contact detail -->
111    <dimen name="detail_min_line_item_height">48dip</dimen>
112
113    <!-- Font size used for the contact name in the widget -->
114    <dimen name="widget_text_size_name">14sp</dimen>
115
116    <!-- Font size used for the social status in the widget -->
117    <dimen name="widget_text_size_snippet">13sp</dimen>
118
119    <!-- Height of list sections (A, B, C) that show the first character of the contacts -->
120    <dimen name="list_section_height">25dip</dimen>
121
122    <!-- Account title left padding -->
123    <dimen name="account_container_left_padding">16dip</dimen>
124
125    <!-- Left padding for a group member list item -->
126    <dimen name="group_member_item_left_padding">4dip</dimen>
127
128    <!-- Left and right padding for the group editor view -->
129    <dimen name="group_editor_side_padding">16dip</dimen>
130
131    <!-- Left margin for the group member list to match the built in margin in the autocomplete asset -->
132    <dimen name="group_editor_member_list_left_margin">4dip</dimen>
133
134    <!-- Right margin for the group member list to match the built in margin in the autocomplete asset -->
135    <dimen name="group_editor_member_list_right_margin">4dip</dimen>
136
137    <!-- Left padding of the auto complete field to line hint text up with member list -->
138    <dimen name="group_editor_autocomplete_left_padding">8dip</dimen>
139
140    <!-- Border padding for the group detail fragment -->
141    <dimen name="group_detail_border_padding">0dip</dimen>
142
143    <!-- Height of the quick contact photo container (for screens that are too large to use the screen width/height as a constraint)-->
144    <dimen name="quick_contact_photo_container_height">180dip</dimen>
145
146    <!-- Width of search view in action bar.  Use 0dip for MATCH_PARENT -->
147    <dimen name="search_view_width">0dip</dimen>
148
149    <!-- For join screen. Mainly for tablet. -->
150    <dimen name="join_header_left_margin">@dimen/contact_browser_list_header_left_margin</dimen>
151    <dimen name="join_header_right_margin">@dimen/contact_browser_list_header_right_margin</dimen>
152    <dimen name="join_header_top_margin">16dip</dimen>
153    <dimen name="join_header_bottom_margin">0dip</dimen>
154
155    <dimen name="no_accounts_message_margin">20dip</dimen>
156
157    <dimen name="contact_filter_header_min_height">24dip</dimen>
158
159    <!-- Max width of the SearchView when the contact picker is a dialog (on wide
160         screen devices). -->
161    <dimen name="contact_picker_search_view_max_width">550dip</dimen>
162
163    <!-- Min height of the list of contacts when the contact picker is a dialog (on
164        wide screen devices). -->
165    <dimen name="contact_picker_contact_list_min_height">550dip</dimen>
166
167
168    <!-- Margins for ExpandingEntryCardView -->
169    <dimen name="expanding_entry_card_marginStartEnd">8dp</dimen>
170    <dimen name="expanding_entry_card_marginBottom">12dp</dimen>
171    <!-- Width of the grey border surrounding the expanding entry cards. If we ever add
172         a rounded corner to the expanding entry cards, than we will need to increase this value -->
173    <dimen name="expanding_entry_card_border_width">12dp</dimen>
174
175    <!-- Top margin for the communication card, used to add space from header. -->
176    <dimen name="first_card_marginTop">12dp</dimen>
177
178    <!-- Elevation of an ExpandingEntryCard, for the sake of shadow casting -->
179    <dimen name="expanding_entry_card_elevation">2dp</dimen>
180    <!-- Elevation of the QuickContact's Toolbar, for the sake of shadow casting -->
181    <dimen name="quick_contact_toolbar_elevation">4.5dp</dimen>
182
183    <!-- Size of the title text for a ExpandingEntryCardView -->
184    <dimen name="expanding_entry_card_title_text_size">16sp</dimen>
185    <!-- Padding for the title text for a ExpandingEntryCardView -->
186    <dimen name="expanding_entry_card_title_padding">16dp</dimen>
187    <!-- Extra top padding if the title is set to null -->
188    <dimen name="expanding_entry_card_null_title_top_extra_padding">2dp</dimen>
189
190    <!-- Height of the separator between entries in an ExpandingEntryCardView and contact editor. -->
191    <dimen name="divider_line_height">1dp</dimen>
192
193    <!-- Dimensions for an entry in ExpandingEntryCardView -->
194    <dimen name="expanding_entry_card_item_padding_start">20dp</dimen>
195    <dimen name="expanding_entry_card_item_padding_end">20dp</dimen>
196    <dimen name="expanding_entry_card_item_padding_top">18dp</dimen>
197    <dimen name="expanding_entry_card_item_padding_bottom">16dp</dimen>
198    <dimen name="expanding_entry_card_item_image_spacing">27dp</dimen>
199
200    <!-- Dimensions for a button in ExpandingEntryCardView -->
201    <dimen name="expanding_entry_card_button_padding_vertical">18dp</dimen>
202
203    <dimen name="expanding_entry_card_item_text_icon_margin_top">7dp</dimen>
204    <dimen name="expanding_entry_card_item_text_icon_margin_right">7dp</dimen>
205    <dimen name="expanding_entry_card_item_sub_header_icon_margin_right">4dp</dimen>
206    <dimen name="expanding_entry_card_item_sub_header_icon_margin_bottom">14dp</dimen>
207
208    <dimen name="expanding_entry_card_item_icon_margin_top">7dp</dimen>
209    <dimen name="expanding_entry_card_item_header_only_margin_top">6dp</dimen>
210    <dimen name="expanding_entry_card_item_alternate_icon_start_margin">16dp</dimen>
211    <dimen name="expanding_entry_card_item_alternate_icon_margin_bottom">10dp</dimen>
212
213    <dimen name="expanding_entry_card_badge_separator_margin">8dp</dimen>
214    <dimen name="expanding_entry_card_card_corner_radius">2dp</dimen>
215    <dimen name="expanding_entry_card_header_margin_bottom">2dp</dimen>
216    <!-- The top margin when the sub header and text views are both gone -->
217    <dimen name="expanding_entry_card_item_header_only_margin_bottom">2dp</dimen>
218    <dimen name="expanding_entry_card_item_no_icon_margin_top">6dp</dimen>
219
220    <!-- The width the that the tabs occupy in the ActionBar when in landscape mode.
221         426dp is the height of a "small" screen. We should leave 240dp for
222         the title and menu items -->
223    <dimen name="people_activity_landscape_tabs_width">186dip</dimen>
224    <!-- The size of the text displayed in the ActionBar tabs in landscape mode.
225         Text in the tabs should must be width dependent, otherwise it won't fit in the tabs.
226         In portrait mode, the tabs look okay when overflowing their allocated space.
227         We have to be more careful in landscape. -->
228    <dimen name="people_activity_landscape_tabs_text_size">8dp</dimen>
229
230    <dimen name="expanding_entry_card_item_icon_height">24dp</dimen>
231    <dimen name="expanding_entry_card_item_icon_width">24dp</dimen>
232
233    <!-- Width of the box around a tab when the tab has focus -->
234    <dimen name="tab_focused_stroke_width">1dp</dimen>
235
236    <!-- This value should be kept at (?android:attr/listPreferredItemHeight -
237      @dimen/contact_browser_list_item_photo_size) / 2 or greater. Otherwise, this padding
238      will never take affect inside list items. As a result, the padding at the very top
239      of ListView's will not match the padding inside list items -->
240    <dimen name="contact_browser_list_item_padding_top_or_bottom">12dp</dimen>
241</resources>
242