blob: 5bcd4b4a8c77c9f5ebdff2340ddb43182d47bd83 [file] [log] [blame]
Adam Powellbbbb8f32012-04-25 13:03:55 -07001<?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 Powellbbbb8f32012-04-25 13:03:55 -070018 <!-- 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 Banes07a07ce2013-05-23 11:03:31 +010021 <dimen name="abc_action_bar_stacked_tab_max_width">180dp</dimen>
Adam Powellbbbb8f32012-04-25 13:03:55 -070022
Chris Banes89208232013-05-31 13:36:59 +010023 <!-- 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 Banesb43f2652013-08-05 10:31:19 +010025 <!-- Size of the indeterminate Progress Bar -->
26 <dimen name="abc_action_bar_progress_bar_size">40dp</dimen>
Adam Powellbbbb8f32012-04-25 13:03:55 -070027
Chris Banes07a07ce2013-05-23 11:03:31 +010028 <dimen name="abc_panel_menu_list_width">296dp</dimen>
Chris Banesfbd6eae2013-03-12 10:57:42 +000029
Chris Banes81804142013-05-22 09:55:42 +010030 <!-- Preferred width of the search view. -->
Chris Banes07a07ce2013-05-23 11:03:31 +010031 <dimen name="abc_search_view_preferred_width">320dip</dimen>
Aurimas Liutikas6c46b612016-04-06 16:49:41 -070032 <dimen name="abc_search_view_preferred_height">48dip</dimen>
Chris Banes81804142013-05-22 09:55:42 +010033
34 <!-- Text padding for dropdown items -->
Chris Banes07a07ce2013-05-23 11:03:31 +010035 <dimen name="abc_dropdownitem_text_padding_left">8dip</dimen>
36 <dimen name="abc_dropdownitem_text_padding_right">8dip</dimen>
Chris Banes81804142013-05-22 09:55:42 +010037 <!-- Width of the icon in a dropdown list -->
Chris Banes07a07ce2013-05-23 11:03:31 +010038 <dimen name="abc_dropdownitem_icon_width">32dip</dimen>
Chris Banes81804142013-05-22 09:55:42 +010039
Chris Banes56fd5012013-11-06 15:24:22 +000040 <!-- 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 Banescc82b3e2015-09-21 17:33:00 +010042 <item type="dimen" name="abc_dialog_fixed_width_major">320dp</item>
Chris Banes56fd5012013-11-06 15:24:22 +000043 <!-- 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 Banescc82b3e2015-09-21 17:33:00 +010045 <item type="dimen" name="abc_dialog_fixed_width_minor">320dp</item>
Chris Banes56fd5012013-11-06 15:24:22 +000046 <!-- 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 Banescc82b3e2015-09-21 17:33:00 +010048 <item type="dimen" name="abc_dialog_fixed_height_major">80%</item>
Chris Banes56fd5012013-11-06 15:24:22 +000049 <!-- 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 Banescc82b3e2015-09-21 17:33:00 +010051 <item type="dimen" name="abc_dialog_fixed_height_minor">100%</item>
Chris Banes56fd5012013-11-06 15:24:22 +000052
Chris Banesa9585da2014-10-16 13:44:15 +010053 <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 Banes968c5932014-07-27 11:23:58 +010059 <!-- 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 Banesa9585da2014-10-16 13:44:15 +010063 <!-- Default rounded corner for controls -->
64 <dimen name="abc_control_corner_material">2dp</dimen>
Chris Banes968c5932014-07-27 11:23:58 +010065
Chris Banes90075472014-11-20 10:31:21 +000066 <dimen name="abc_edit_text_inset_horizontal_material">4dp</dimen>
Chris Banes71a61e92014-12-09 10:48:11 +000067 <dimen name="abc_edit_text_inset_top_material">10dp</dimen>
68 <dimen name="abc_edit_text_inset_bottom_material">7dp</dimen>
Chris Banes90075472014-11-20 10:31:21 +000069
Chris Banes414f5232014-12-11 10:29:47 +000070 <!-- 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 Banes16e8d4d2014-12-23 10:10:20 +000073 <dimen name="abc_dialog_padding_material">24dp</dimen>
74 <dimen name="abc_dialog_padding_top_material">18dp</dimen>
Chris Banes2c960112016-11-07 12:33:18 +000075 <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>
Chris Banes16e8d4d2014-12-23 10:10:20 +000078
Chris Banes6b80dd62015-01-29 17:35:09 +000079 <!-- Dialog button bar height -->
80 <dimen name="abc_alert_dialog_button_bar_height">48dp</dimen>
81
Chris Banesf7b73432015-09-07 12:39:18 +100082 <!-- Dialog padding minus control padding, used to fix alignment. -->
83 <dimen name="abc_select_dialog_padding_start_material">20dp</dimen>
84
Chris Banes19eaf142015-02-04 23:39:54 +000085 <!-- The platform's desired minimum size for a dialog's width when it
86 is along the major axis (that is the screen is landscape). This may
87 be either a fraction or a dimension. -->
88 <item type="dimen" name="abc_dialog_min_width_major">65%</item>
89
90 <!-- The platform's desired minimum size for a dialog's width when it
91 is along the minor axis (that is the screen is portrait). This may
92 be either a fraction or a dimension. -->
93 <item type="dimen" name="abc_dialog_min_width_minor">95%</item>
94
Chris Banesd6e47222016-04-21 13:55:23 +010095 <!-- Minimum "smallest width" of the display for cascading menus to be enabled. -->
96 <dimen name="abc_cascading_menus_min_smallest_width">720dp</dimen>
97
Aga Madurska70a61be2017-10-25 19:26:16 +010098 <!-- Dimension of the AlertDialog button icon -->
99 <dimen name="abc_alert_dialog_button_dimen">48dp</dimen>
100
Vladislav Kaznacheeva4c68252017-03-03 13:09:06 -0800101 <!-- Tooltip dimensions. -->
102 <!-- Vertical offset from the edge of the anchor view for a touch-triggered tooltip. -->
103 <dimen name="tooltip_y_offset_touch">16dp</dimen>
104 <!-- Vertical offset from the edge of the anchor view for a non-touch-triggered tooltip. -->
105 <dimen name="tooltip_y_offset_non_touch">0dp</dimen>
106 <!-- The tooltip does not get closer than this to the window edge -->
107 <dimen name="tooltip_margin">8dp</dimen>
108 <!-- Left/right padding of the tooltip text. -->
109 <dimen name="tooltip_horizontal_padding">16dp</dimen>
110 <!-- Top/bottom padding of the tooltip text. -->
111 <dimen name="tooltip_vertical_padding">6.5dp</dimen>
112 <!-- Border corner radius of the tooltip window. -->
113 <dimen name="tooltip_corner_radius">2dp</dimen>
114 <!-- View with the height equal or above this threshold will have a tooltip anchored
115 to the mouse/touch position -->
116 <dimen name="tooltip_precise_anchor_threshold">96dp</dimen>
117 <!-- Extra tooltip offset used when anchoring to the mouse/touch position -->
118 <dimen name="tooltip_precise_anchor_extra_offset">8dp</dimen>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700119</resources>