Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2012 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 | <resources> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 18 | <!-- Maximum width for a stacked action bar tab. This prevents |
| 19 | action bar tabs from becoming too wide on a wide screen when only |
| 20 | a few are present. --> |
Chris Banes | 07a07ce | 2013-05-23 11:03:31 +0100 | [diff] [blame] | 21 | <dimen name="abc_action_bar_stacked_tab_max_width">180dp</dimen> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 22 | |
Chris Banes | 8920823 | 2013-05-31 13:36:59 +0100 | [diff] [blame] | 23 | <!-- Maximum height for a stacked tab bar as part of an action bar --> |
| 24 | <dimen name="abc_action_bar_stacked_max_height">48dp</dimen> |
Chris Banes | b43f265 | 2013-08-05 10:31:19 +0100 | [diff] [blame] | 25 | <!-- Size of the indeterminate Progress Bar --> |
| 26 | <dimen name="abc_action_bar_progress_bar_size">40dp</dimen> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 27 | |
Chris Banes | 07a07ce | 2013-05-23 11:03:31 +0100 | [diff] [blame] | 28 | <dimen name="abc_panel_menu_list_width">296dp</dimen> |
Chris Banes | fbd6eae | 2013-03-12 10:57:42 +0000 | [diff] [blame] | 29 | |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 30 | <!-- Preferred width of the search view. --> |
Chris Banes | 07a07ce | 2013-05-23 11:03:31 +0100 | [diff] [blame] | 31 | <dimen name="abc_search_view_preferred_width">320dip</dimen> |
Aurimas Liutikas | 6c46b61 | 2016-04-06 16:49:41 -0700 | [diff] [blame] | 32 | <dimen name="abc_search_view_preferred_height">48dip</dimen> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 33 | |
| 34 | <!-- Text padding for dropdown items --> |
Chris Banes | 07a07ce | 2013-05-23 11:03:31 +0100 | [diff] [blame] | 35 | <dimen name="abc_dropdownitem_text_padding_left">8dip</dimen> |
| 36 | <dimen name="abc_dropdownitem_text_padding_right">8dip</dimen> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 37 | <!-- Width of the icon in a dropdown list --> |
Chris Banes | 07a07ce | 2013-05-23 11:03:31 +0100 | [diff] [blame] | 38 | <dimen name="abc_dropdownitem_icon_width">32dip</dimen> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 39 | |
Chris Banes | 56fd501 | 2013-11-06 15:24:22 +0000 | [diff] [blame] | 40 | <!-- The platform's desired fixed width for a dialog along the major axis |
| 41 | (the screen is in landscape). This may be either a fraction or a dimension.--> |
Chris Banes | cc82b3e | 2015-09-21 17:33:00 +0100 | [diff] [blame] | 42 | <item type="dimen" name="abc_dialog_fixed_width_major">320dp</item> |
Chris Banes | 56fd501 | 2013-11-06 15:24:22 +0000 | [diff] [blame] | 43 | <!-- The platform's desired fixed width for a dialog along the minor axis |
| 44 | (the screen is in portrait). This may be either a fraction or a dimension.--> |
Chris Banes | cc82b3e | 2015-09-21 17:33:00 +0100 | [diff] [blame] | 45 | <item type="dimen" name="abc_dialog_fixed_width_minor">320dp</item> |
Chris Banes | 56fd501 | 2013-11-06 15:24:22 +0000 | [diff] [blame] | 46 | <!-- The platform's desired fixed height for a dialog along the major axis |
| 47 | (the screen is in portrait). This may be either a fraction or a dimension.--> |
Chris Banes | cc82b3e | 2015-09-21 17:33:00 +0100 | [diff] [blame] | 48 | <item type="dimen" name="abc_dialog_fixed_height_major">80%</item> |
Chris Banes | 56fd501 | 2013-11-06 15:24:22 +0000 | [diff] [blame] | 49 | <!-- The platform's desired fixed height for a dialog along the minor axis |
| 50 | (the screen is in landscape). This may be either a fraction or a dimension.--> |
Chris Banes | cc82b3e | 2015-09-21 17:33:00 +0100 | [diff] [blame] | 51 | <item type="dimen" name="abc_dialog_fixed_height_minor">100%</item> |
Chris Banes | 56fd501 | 2013-11-06 15:24:22 +0000 | [diff] [blame] | 52 | |
Chris Banes | a9585da | 2014-10-16 13:44:15 +0100 | [diff] [blame] | 53 | <dimen name="abc_button_inset_vertical_material">6dp</dimen> |
| 54 | <dimen name="abc_button_inset_horizontal_material">@dimen/abc_control_inset_material</dimen> |
| 55 | <!-- Default inner padding within buttons --> |
| 56 | <dimen name="abc_button_padding_vertical_material">@dimen/abc_control_padding_material</dimen> |
| 57 | <dimen name="abc_button_padding_horizontal_material">8dp</dimen> |
| 58 | |
Chris Banes | 968c593 | 2014-07-27 11:23:58 +0100 | [diff] [blame] | 59 | <!-- Default insets (outer padding) around controls --> |
| 60 | <dimen name="abc_control_inset_material">4dp</dimen> |
| 61 | <!-- Default inner padding within controls --> |
| 62 | <dimen name="abc_control_padding_material">4dp</dimen> |
Chris Banes | a9585da | 2014-10-16 13:44:15 +0100 | [diff] [blame] | 63 | <!-- Default rounded corner for controls --> |
| 64 | <dimen name="abc_control_corner_material">2dp</dimen> |
Chris Banes | 968c593 | 2014-07-27 11:23:58 +0100 | [diff] [blame] | 65 | |
Chris Banes | 9007547 | 2014-11-20 10:31:21 +0000 | [diff] [blame] | 66 | <dimen name="abc_edit_text_inset_horizontal_material">4dp</dimen> |
Chris Banes | 71a61e9 | 2014-12-09 10:48:11 +0000 | [diff] [blame] | 67 | <dimen name="abc_edit_text_inset_top_material">10dp</dimen> |
| 68 | <dimen name="abc_edit_text_inset_bottom_material">7dp</dimen> |
Chris Banes | 9007547 | 2014-11-20 10:31:21 +0000 | [diff] [blame] | 69 | |
Chris Banes | 414f523 | 2014-12-11 10:29:47 +0000 | [diff] [blame] | 70 | <!-- Since optical insets are not available pre-v18, we add a small amount of padding --> |
| 71 | <dimen name="abc_switch_padding">3dp</dimen> |
| 72 | |
Chris Banes | 16e8d4d | 2014-12-23 10:10:20 +0000 | [diff] [blame] | 73 | <dimen name="abc_dialog_padding_material">24dp</dimen> |
| 74 | <dimen name="abc_dialog_padding_top_material">18dp</dimen> |
Chris Banes | 2c96011 | 2016-11-07 12:33:18 +0000 | [diff] [blame] | 75 | <dimen name="abc_dialog_title_divider_material">8dp</dimen> |
| 76 | <dimen name="abc_dialog_list_padding_top_no_title">8dp</dimen> |
| 77 | <dimen name="abc_dialog_list_padding_bottom_no_buttons">8dp</dimen> |
Lucas Dupin | dd47d23 | 2017-11-17 11:34:34 -0800 | [diff] [blame] | 78 | <dimen name="abc_dialog_corner_radius_material">2dp</dimen> |
Chris Banes | 16e8d4d | 2014-12-23 10:10:20 +0000 | [diff] [blame] | 79 | |
Chris Banes | 6b80dd6 | 2015-01-29 17:35:09 +0000 | [diff] [blame] | 80 | <!-- Dialog button bar height --> |
| 81 | <dimen name="abc_alert_dialog_button_bar_height">48dp</dimen> |
| 82 | |
Chris Banes | f7b7343 | 2015-09-07 12:39:18 +1000 | [diff] [blame] | 83 | <!-- Dialog padding minus control padding, used to fix alignment. --> |
| 84 | <dimen name="abc_select_dialog_padding_start_material">20dp</dimen> |
| 85 | |
Chris Banes | 19eaf14 | 2015-02-04 23:39:54 +0000 | [diff] [blame] | 86 | <!-- The platform's desired minimum size for a dialog's width when it |
| 87 | is along the major axis (that is the screen is landscape). This may |
| 88 | be either a fraction or a dimension. --> |
| 89 | <item type="dimen" name="abc_dialog_min_width_major">65%</item> |
| 90 | |
| 91 | <!-- The platform's desired minimum size for a dialog's width when it |
| 92 | is along the minor axis (that is the screen is portrait). This may |
| 93 | be either a fraction or a dimension. --> |
| 94 | <item type="dimen" name="abc_dialog_min_width_minor">95%</item> |
| 95 | |
Chris Banes | d6e4722 | 2016-04-21 13:55:23 +0100 | [diff] [blame] | 96 | <!-- Minimum "smallest width" of the display for cascading menus to be enabled. --> |
| 97 | <dimen name="abc_cascading_menus_min_smallest_width">720dp</dimen> |
| 98 | |
Aga Madurska | 70a61be | 2017-10-25 19:26:16 +0100 | [diff] [blame] | 99 | <!-- Dimension of the AlertDialog button icon --> |
| 100 | <dimen name="abc_alert_dialog_button_dimen">48dp</dimen> |
| 101 | |
Vladislav Kaznacheev | a4c6825 | 2017-03-03 13:09:06 -0800 | [diff] [blame] | 102 | <!-- Tooltip dimensions. --> |
| 103 | <!-- Vertical offset from the edge of the anchor view for a touch-triggered tooltip. --> |
| 104 | <dimen name="tooltip_y_offset_touch">16dp</dimen> |
| 105 | <!-- Vertical offset from the edge of the anchor view for a non-touch-triggered tooltip. --> |
| 106 | <dimen name="tooltip_y_offset_non_touch">0dp</dimen> |
| 107 | <!-- The tooltip does not get closer than this to the window edge --> |
| 108 | <dimen name="tooltip_margin">8dp</dimen> |
| 109 | <!-- Left/right padding of the tooltip text. --> |
| 110 | <dimen name="tooltip_horizontal_padding">16dp</dimen> |
| 111 | <!-- Top/bottom padding of the tooltip text. --> |
| 112 | <dimen name="tooltip_vertical_padding">6.5dp</dimen> |
| 113 | <!-- Border corner radius of the tooltip window. --> |
| 114 | <dimen name="tooltip_corner_radius">2dp</dimen> |
| 115 | <!-- View with the height equal or above this threshold will have a tooltip anchored |
| 116 | to the mouse/touch position --> |
| 117 | <dimen name="tooltip_precise_anchor_threshold">96dp</dimen> |
| 118 | <!-- Extra tooltip offset used when anchoring to the mouse/touch position --> |
| 119 | <dimen name="tooltip_precise_anchor_extra_offset">8dp</dimen> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 120 | </resources> |