Home | History | Annotate | Download | only in values
      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     <!-- Size of clickable icons that are GAR-4 -->
     18     <dimen name="default_clickable_icon_size">48dp</dimen>
     19     <!-- Copied from java/com/google/android/assets/launchscreens/res/values-port-v21/dimens.xml -->
     20     <!-- Values adjusted for nav bar size due to windowDrawsSystemBarBackgrounds -->
     21     <dimen name="launchscreens_product_logo_bottom">64dp</dimen>
     22 
     23     <!-- Initial height of transparent space above QuickContacts -->
     24     <dimen name="quickcontact_starting_empty_height">150dp</dimen>
     25     <!-- Initial size of QuickContact's title size -->
     26     <dimen name="quickcontact_maximum_title_size">32dp</dimen>
     27     <!-- Initial size of QuickContact's phonetic name size -->
     28     <dimen name="quickcontact_maximum_phonetic_name_size">28dp</dimen>
     29     <!-- When QC is uncollapsed, the title has this much margin on its left and right. -->
     30     <dimen name="quickcontact_title_initial_margin">16dp</dimen>
     31     <!-- When QC is uncollapsed, the title has this much margin on its bottom -->
     32     <dimen name="quickcontact_title_initial_bottom_margin">8dp</dimen>
     33     <!-- The ratio of width:height for the contact's photo in landscape -->
     34     <item name="quickcontact_landscape_photo_ratio" type="dimen" format="float">0.7</item>
     35     <!-- How far QuickContacts can be dragged and released from the top of the window before we dismiss it. -->
     36     <dimen name="quickcontact_dismiss_distance_on_release">40dp</dimen>
     37     <!-- How far QuickContacts can be dragged from the top of the window before we dismiss it. -->
     38     <dimen name="quickcontact_dismiss_distance_on_scroll">100dp</dimen>
     39     <!-- When first flinging QuickContacts towards the top of the window if the fling is
     40         predicted to scroll past the window top by less than this amount, then QuickContacts
     41         snaps to the top of the window. -->
     42     <dimen name="quickcontact_snap_to_top_slop_height">33dp</dimen>
     43 
     44     <!-- Account info left margin in editor. -->
     45     <dimen name="editor_account_left_margin">4dp</dimen>
     46 
     47     <!-- Margin between name field and whatever fields are above it. -->
     48     <dimen name="editor_name_top_margin">8dp</dimen>
     49 
     50     <!-- Top margin for "Saving to" account header text field. -->
     51     <dimen name="editor_account_header_top_margin">3dp</dimen>
     52 
     53     <!-- The ratio of width:height (360:184) for the editor contact photo in portrait -->
     54     <item name="editor_portrait_photo_ratio" type="dimen" format="float">1.96</item>
     55 
     56     <!-- Padding of the rounded plus/minus/expand/collapse buttons in the editor  -->
     57     <dimen name="editor_round_button_padding_left">16dip</dimen>
     58     <dimen name="editor_round_button_padding_right">16dip</dimen>
     59     <dimen name="editor_round_button_padding_top">16dip</dimen>
     60     <dimen name="editor_round_button_padding_bottom">16dip</dimen>
     61 
     62     <!-- Minimum height of a row in the Editor. This is the target height for editor "rows",
     63         including the "More fields" button/row. -->
     64     <dimen name="editor_min_line_item_height">54dp</dimen>
     65 
     66     <!-- The height and width of the delete button should be the same size as an editor row -->
     67     <dimen name="editor_delete_button_size">@dimen/editor_min_line_item_height</dimen>
     68 
     69     <!-- Top margin applied to mime-type icons inside the editor. This is needed to give the
     70         appearance that the icons are top aligned with the text, since visible text doesn't
     71         start at the very top of TextViews. -->
     72     <dimen name="editor_kind_icon_top_margin">14dp</dimen>
     73 
     74     <!-- RHS padding added to spinners in the editor. This separates the spinner text from the
     75         spinner graphic since b/18194928 causes the spinner to always be on the RHS.
     76         In LTR mode this shouldn't have an observable affect. We set paddingRight instead of
     77         drawablePadding since the spinner graphic is not a normal drawable.  -->
     78     <dimen name="editor_spinner_right_padding_workaround">24dip</dimen>
     79 
     80     <!-- RHS padding added to spinners for L devices -->
     81     <dimen name="editor_spinner_right_padding">40dip</dimen>
     82 
     83     <!-- Size of input form text inside the contact editor -->
     84     <dimen name="editor_form_text_size">16sp</dimen>
     85 
     86     <!-- Total width of data-kind icon, including its start and end padding -->
     87     <dimen name="editor_kind_icon_total_width">68dp</dimen>
     88 
     89     <!-- Padding below every editor view, such as LabeledEditorView. This value is chosen
     90         to give 19dp of apparent padding between EditText's in the Raw Contact Editor. -->
     91     <dimen name="editor_padding_between_editor_views">2dp</dimen>
     92 
     93     <!-- Padding below every readonly editor view. This value is chosen to give 19dp of apparent
     94         padding between TextView's in the readonly Raw Contact Editor. -->
     95     <dimen name="editor_padding_between_read_only_editor_views">9dp</dimen>
     96 
     97     <!-- Width of the Type-Label in the Editor -->
     98     <dimen name="editor_type_label_width">150dip</dimen>
     99 
    100     <!-- Minimum width for the photo action popup options -->
    101     <dimen name="photo_action_popup_min_width">300dip</dimen>
    102 
    103     <!-- Minimum width for the custom label edit dialog -->
    104     <dimen name="custom_dialog_min_width">300dip</dimen>
    105 
    106     <!-- Custom dialog padding dimens -->
    107     <dimen name="custom_dialog_layout_padding">24dip</dimen>
    108 
    109     <!-- Custom dialog layout dimens -->
    110     <dimen name="custom_dialog_layout">4dip</dimen>
    111 
    112     <!-- For join screen. Mainly for tablet. -->
    113     <dimen name="join_header_left_margin">@dimen/contact_browser_list_header_left_margin</dimen>
    114     <dimen name="join_header_right_margin">@dimen/contact_browser_list_header_right_margin</dimen>
    115     <dimen name="join_header_top_margin">12dip</dimen>
    116     <dimen name="join_header_bottom_margin">12dip</dimen>
    117 
    118     <dimen name="contact_filter_header_min_height">24dip</dimen>
    119 
    120     <!-- Margins for ExpandingEntryCardView -->
    121     <dimen name="expanding_entry_card_marginStartEnd">8dp</dimen>
    122     <dimen name="expanding_entry_card_marginBottom">12dp</dimen>
    123 
    124     <!-- Top margin for the communication card, used to add space from header. -->
    125     <dimen name="first_card_marginTop">12dp</dimen>
    126 
    127     <!-- Elevation of an ExpandingEntryCard, for the sake of shadow casting -->
    128     <dimen name="expanding_entry_card_elevation">2dp</dimen>
    129     <!-- Elevation of the QuickContact's Toolbar, for the sake of shadow casting -->
    130     <dimen name="quick_contact_toolbar_elevation">4.5dp</dimen>
    131 
    132     <!-- Size of the title text for a ExpandingEntryCardView -->
    133     <dimen name="expanding_entry_card_title_text_size">16sp</dimen>
    134     <!-- Padding for the title text for a ExpandingEntryCardView -->
    135     <dimen name="expanding_entry_card_title_padding">16dp</dimen>
    136     <!-- Extra top padding if the title is set to null -->
    137     <dimen name="expanding_entry_card_null_title_top_extra_padding">2dp</dimen>
    138 
    139     <!-- Height of the separator between entries in an ExpandingEntryCardView and contact editor. -->
    140     <dimen name="divider_line_height">1dp</dimen>
    141 
    142     <!-- Dimensions for an entry in ExpandingEntryCardView -->
    143     <dimen name="expanding_entry_card_item_padding_start">20dp</dimen>
    144     <dimen name="expanding_entry_card_item_padding_end">8dp</dimen>
    145     <dimen name="expanding_entry_card_item_padding_top">13dp</dimen>
    146     <dimen name="expanding_entry_card_item_padding_bottom">16dp</dimen>
    147     <dimen name="expanding_entry_card_item_image_spacing">27dp</dimen>
    148 
    149     <!-- Dimensions for a button in ExpandingEntryCardView -->
    150     <dimen name="expanding_entry_card_button_padding_vertical">18dp</dimen>
    151 
    152     <dimen name="expanding_entry_card_item_text_icon_margin_top">7dp</dimen>
    153     <dimen name="expanding_entry_card_item_text_icon_margin_right">7dp</dimen>
    154     <dimen name="expanding_entry_card_item_sub_header_icon_margin_right">4dp</dimen>
    155     <dimen name="expanding_entry_card_item_sub_header_icon_margin_bottom">14dp</dimen>
    156 
    157     <dimen name="expanding_entry_card_item_icon_margin_top">12dp</dimen>
    158     <dimen name="expanding_entry_card_item_icon_margin_bottom">12dp</dimen>
    159     <dimen name="expanding_entry_card_item_icon_margin_left">12dp</dimen>
    160     <dimen name="expanding_entry_card_item_icon_margin_right">12dp</dimen>
    161     <dimen name="expanding_entry_card_item_header_only_margin_top">6dp</dimen>
    162 
    163     <dimen name="expanding_entry_card_card_corner_radius">2dp</dimen>
    164     <dimen name="expanding_entry_card_header_margin_bottom">2dp</dimen>
    165     <!-- The top margin when the sub header and text views are both gone -->
    166     <dimen name="expanding_entry_card_item_header_only_margin_bottom">2dp</dimen>
    167     <dimen name="expanding_entry_card_item_no_icon_margin_top">6dp</dimen>
    168 
    169     <dimen name="quickcontact_suggestion_card_icon_height">40dp</dimen>
    170     <dimen name="quickcontact_suggestion_card_icon_width">40dp</dimen>
    171     <dimen name="quickcontact_suggestion_card_image_spacing">20dp</dimen>
    172     <dimen name="quickcontact_suggestion_card_layout_margin">8dp</dimen>
    173     <dimen name="quickcontact_collapse_view_height">48dp</dimen>
    174     <dimen name="quickcontact_collapse_icon_size">24dp</dimen>
    175     <dimen name="quickcontact_collapse_text_padding">12dp</dimen>
    176     <dimen name="quickcontact_collapse_image_padding">20dp</dimen>
    177     <dimen name="quickcontact_expanding_help_text_size">14sp</dimen>
    178     <dimen name="quickcontact_expanding_button_right_padding">16dp</dimen>
    179     <dimen name="quickcontact_expanding_item_height">72dp</dimen>
    180     <dimen name="quickcontact_expanding_item_image_padding">12dp</dimen>
    181     <dimen name="quickcontact_expanding_button_section_height">48dp</dimen>
    182     <dimen name="quickcontact_expanding_button_section_padding">8dp</dimen>
    183 
    184     <dimen name="expanding_entry_card_item_icon_height">24dp</dimen>
    185     <dimen name="expanding_entry_card_item_icon_width">24dp</dimen>
    186 
    187     <dimen name="contact_browser_list_item_padding_top_or_bottom">7dp</dimen>
    188 
    189     <dimen name="contact_browser_list_item_height">56dp</dimen>
    190 
    191     <!-- Navigation drawer header height, the same as the status bar in landscape and portrait modes -->
    192     <dimen name="nav_header_height">24dp</dimen>
    193 
    194     <!-- Default activity margins, per the Android Material Design guidelines. -->
    195     <dimen name="activity_horizontal_margin">16dp</dimen>
    196     <dimen name="activity_vertical_margin">16dp</dimen>
    197 
    198     <dimen name="nav_new_badge_corners">3dp</dimen>
    199     <dimen name="nav_new_badge_vertical_pad">2dp</dimen>
    200     <dimen name="nav_new_badge_horizontal_pad">5dp</dimen>
    201     <dimen name="nav_new_badge_font_size">11sp</dimen>
    202 
    203     <!-- Top padding for the image for empty group view-->
    204     <dimen name="empty_group_view_image_padding_top">0dp</dimen>
    205 
    206     <!-- Height for the image for empty group and main view-->
    207     <dimen name="empty_view_image_height">150dp</dimen>
    208 
    209     <!-- Top padding for the text for empty group view-->
    210     <dimen name="empty_group_view_text_padding_top">14dp</dimen>
    211 
    212     <!-- Top padding for the text for empty account view -->
    213     <dimen name="empty_account_view_text_padding_top">24dp</dimen>
    214 
    215     <!-- End margin of edit group title -->
    216     <dimen name="edit_group_end_margin">72dp</dimen>
    217 
    218     <!-- Minimum height for group name EditText -->
    219     <dimen name="dialog_edit_text_min_height">48dp</dimen>
    220 
    221     <!-- Distance to pull down before causing a refresh. -->
    222     <dimen name="pull_to_refresh_distance">40dp</dimen>
    223 
    224     <!-- Elevation of contact list header -->
    225     <dimen name="contact_list_header_elevation">2dp</dimen>
    226 
    227     <!-- Gap b/w image view and top of the screen in empty main view -->
    228     <dimen name="empty_home_view_image_offset">210dp</dimen>
    229 
    230     <!-- Top padding for the text for empty main view -->
    231     <dimen name="empty_home_view_text_padding_top">32dp</dimen>
    232 
    233     <!-- Extra margin above image in empty account view -->
    234     <dimen name="empty_account_view_image_offset">30dp</dimen>
    235 
    236     <!-- Margin offset b/w the image top and app bar bottom for no account empty view -->
    237     <dimen name="contacts_no_account_empty_image_offset">230dp</dimen>
    238 
    239     <!-- Width for the image for contacts no account empty view -->
    240     <dimen name="contacts_no_account_empty_image_width">180dp</dimen>
    241 
    242     <!-- Top padding for the text for no account empty view -->
    243     <dimen name="contacts_no_account_empty_text_padding_top">32dp</dimen>
    244 
    245     <!-- Top padding for add account button for no account empty view -->
    246     <dimen name="contacts_no_account_empty_button_padding_top">16dp</dimen>
    247 
    248     <!-- Margin b/w add account button and import contacts button for no account empty view -->
    249     <dimen name="contacts_no_account_buttons_margin">8dp</dimen>
    250 
    251     <!-- Padding between the action bar's bottom edge and the first header
    252          in contacts/group lists. -->
    253     <dimen name="list_header_extra_top_padding">0dip</dimen>
    254 
    255     <dimen name="list_section_divider_min_height">32dip</dimen>
    256 
    257     <dimen name="directory_header_extra_top_padding">18dp</dimen>
    258     <dimen name="directory_header_extra_bottom_padding">8dp</dimen>
    259     <dimen name="directory_header_left_padding">16dp</dimen>
    260 
    261     <!--  Horizontal padding in between contact tiles -->
    262     <dimen name="contact_tile_divider_padding">23dip</dimen>
    263     <!--  Horizontal whitespace (both padding and margin) before the first tile and after the last tile -->
    264     <dimen name="contact_tile_start_end_whitespace">16dip</dimen>
    265 
    266     <!-- For contact filter setting screens -->
    267     <dimen name="contact_filter_left_margin">8dp</dimen>
    268     <dimen name="contact_filter_right_margin">16dip</dimen>
    269     <dimen name="contact_filter_item_min_height">48dip</dimen>
    270     <dimen name="contact_filter_icon_size">32dip</dimen>
    271     <dimen name="contact_filter_list_item_height">56dp</dimen>
    272     <dimen name="contact_filter_list_item_padding_start">16dp</dimen>
    273     <!-- contact_filter_indicator is the arrow in expandable list view -->
    274     <dimen name="contact_filter_indicator_padding_start">6dp</dimen>
    275     <dimen name="contact_filter_indicator_padding_end">46dp</dimen>
    276     <dimen name="contact_filter_action_button_width">72dp</dimen>
    277 
    278     <!-- Padding to be used between a visible scrollbar and the contact list -->
    279     <dimen name="list_visible_scrollbar_padding">32dip</dimen>
    280 
    281     <dimen name="contact_browser_list_header_icon_left_margin">16dp</dimen>
    282     <dimen name="contact_browser_list_header_icon_right_margin">14dp</dimen>
    283     <dimen name="contact_browser_list_header_icon_left_margin_alt">18dp</dimen>
    284     <dimen name="contact_browser_list_header_icon_right_margin_alt">16dp</dimen>
    285     <dimen name="contact_browser_list_header_left_margin">16dip</dimen>
    286     <dimen name="contact_browser_list_header_right_margin">@dimen/list_visible_scrollbar_padding</dimen>
    287     <dimen name="contact_browser_list_item_text_indent">8dip</dimen>
    288     <dimen name="contact_browser_list_header_height">48dp</dimen>
    289     <dimen name="contact_browser_list_header_icon_size">24dp</dimen>
    290     <dimen name="contact_browser_list_header_icon_size_alt">20dp</dimen>
    291     <dimen name="contact_browser_list_header_text_margin">10dp</dimen>
    292     <!-- Width of a contact list item section header. -->
    293     <dimen name="contact_list_section_header_width">56dp</dimen>
    294 
    295     <!-- Size of the shortcut icon. 0dip means: use the system default -->
    296     <dimen name="shortcut_icon_size">0dip</dimen>
    297 
    298     <!-- Text size of shortcut icon overlay text -->
    299     <dimen name="shortcut_overlay_text_size">12dp</dimen>
    300 
    301     <!-- Extra vertical padding for darkened background behind shortcut icon overlay text -->
    302     <dimen name="shortcut_overlay_text_background_padding">1dp</dimen>
    303 
    304     <!-- Width of height of an icon from a third-party app in the networks section of the contact card. -->
    305     <dimen name="detail_network_icon_size">40dp</dimen>
    306 
    307     <!-- contact browser list margins -->
    308     <dimen name="contact_browser_list_item_text_size">16sp</dimen>
    309     <dimen name="contact_browser_list_item_photo_size">40dp</dimen>
    310     <dimen name="contact_browser_list_item_gap_between_image_and_text">15dp</dimen>
    311     <dimen name="contact_browser_list_item_gap_between_indexer_and_image">16dp</dimen>
    312 
    313     <!-- Dimensions for contact letter tiles -->
    314     <item name="letter_to_tile_ratio" type="dimen">67%</item>
    315 
    316     <!-- Height of the floating action button -->
    317     <dimen name="floating_action_button_height">56dp</dimen>
    318     <!-- Width of the floating action button -->
    319     <dimen name="floating_action_button_width">56dp</dimen>
    320     <!-- Z translation of the floating action button -->
    321     <dimen name="floating_action_button_translation_z">8dp</dimen>
    322     <!-- Padding to be applied to the bottom of lists to make space for the floating action
    323          button -->
    324     <dimen name="floating_action_button_list_bottom_padding">88dp</dimen>
    325     <!-- Right margin of the floating action button -->
    326     <dimen name="floating_action_button_margin_right">16dp</dimen>
    327     <!-- Bottom margin of the floating action button -->
    328     <dimen name="floating_action_button_margin_bottom">16dp</dimen>
    329 
    330     <!-- Size of text in tabs. -->
    331     <dimen name="tab_elevation">2dp</dimen>
    332 
    333     <!-- Size of the icon (voice search, back arrow) in the search box. -->
    334     <dimen name="search_box_icon_size">56dp</dimen>
    335     <!-- Size of the close icon.-->
    336     <dimen name="search_box_close_icon_size">56dp</dimen>
    337     <!-- Padding around the close button. It's visible size without padding is 24dp. -->
    338     <dimen name="search_box_close_icon_padding">16dp</dimen>
    339     <!-- End margin of the back arrow icon in the search box -->
    340     <dimen name="search_box_navigation_icon_margin">8dp</dimen>
    341     <!-- Left margin of the text field in the search box. -->
    342     <dimen name="search_box_text_left_margin">8dp</dimen>
    343     <!-- Search box text size -->
    344     <dimen name="search_text_size">16sp</dimen>
    345 
    346     <!-- Size of the close icon in selection bar.-->
    347     <dimen name="selection_bar_close_icon_size">56dp</dimen>
    348 
    349     <!-- Top margin for the Frequently Contacted section title -->
    350     <dimen name="frequently_contacted_title_top_margin_when_first_row">16dp</dimen>
    351     <!-- Top margin for the Frequently Contacted section title, when the title is the first
    352          item in the list -->
    353     <dimen name="frequently_contacted_title_top_margin">57dp</dimen>
    354 
    355     <dimen name="frequently_contacted_title_text_size">24sp</dimen>
    356 
    357     <!-- Padding used around the periphery of the call subject dialog, as well as in between the
    358          items. -->
    359     <dimen name="call_subject_dialog_margin">20dp</dimen>
    360     <!-- Padding used between lines of text in the call subject dialog. -->
    361     <dimen name="call_subject_dialog_between_line_margin">8dp</dimen>
    362     <!-- Size of the contact photo in the call subject dialog. -->
    363     <dimen name="call_subject_dialog_contact_photo_size">50dp</dimen>
    364     <!-- Margin above the edit text in the call subject dialog. -->
    365     <dimen name="call_subject_dialog_edit_spacing">60dp</dimen>
    366     <!-- Size of primary text in the call subject dialog. -->
    367     <dimen name="call_subject_dialog_primary_text_size">16sp</dimen>
    368     <!-- Size of secondary text in the call subject dialog. -->
    369     <dimen name="call_subject_dialog_secondary_text_size">14sp</dimen>
    370     <!-- Row padding for call subject history items. -->
    371     <dimen name="call_subject_history_item_padding">15dp</dimen>
    372 
    373     <!-- The width of the drawer -->
    374     <dimen name="drawer_width">320dp</dimen>
    375     <!-- Minimum height of items in navigation drawer -->
    376     <dimen name="drawer_item_fixed_height">48dp</dimen>
    377     <!-- Side padding within the navigation drawer -->
    378     <dimen name="drawer_side_padding">16dp</dimen>
    379     <!-- Size of the icon in navigation drawer -->
    380     <dimen name="drawer_item_icon_size">32dp</dimen>
    381     <!-- The side margin of the item text in navigation drawer -->
    382     <dimen name="drawer_item_text_margin">32dp</dimen>
    383     <!-- The height of the spacer in navigation drawer -->
    384     <dimen name="nav_drawer_spacer_height">8dp</dimen>
    385     <!-- Side padding within the navigation drawer -->
    386     <dimen name="drawer_label_header_end_padding">24dp</dimen>
    387 
    388 </resources>
    389