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