dimens.xml revision 19eaf14cb3cca613f984a32be2fab2534427fb29
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>
18
19    <!-- The maximum number of action buttons that should be permitted within
20         an action bar/action mode. This will be used to determine how many
21         showAsAction="ifRoom" items can fit. "always" items can override this. -->
22    <integer name="abc_max_action_buttons">2</integer>
23
24    <!-- Maximum width for a stacked action bar tab. This prevents
25         action bar tabs from becoming too wide on a wide screen when only
26         a few are present. -->
27    <dimen name="abc_action_bar_stacked_tab_max_width">180dp</dimen>
28
29    <!-- Maximum height for a stacked tab bar as part of an action bar -->
30    <dimen name="abc_action_bar_stacked_max_height">48dp</dimen>
31    <!-- Size of the indeterminate Progress Bar -->
32    <dimen name="abc_action_bar_progress_bar_size">40dp</dimen>
33
34    <dimen name="abc_panel_menu_list_width">296dp</dimen>
35
36    <!-- Minimum width of the search view text entry area. -->
37    <dimen name="abc_search_view_text_min_width">160dip</dimen>
38    <!-- Preferred width of the search view. -->
39    <dimen name="abc_search_view_preferred_width">320dip</dimen>
40
41    <!-- Text padding for dropdown items -->
42    <dimen name="abc_dropdownitem_text_padding_left">8dip</dimen>
43    <dimen name="abc_dropdownitem_text_padding_right">8dip</dimen>
44    <!-- Width of the icon in a dropdown list -->
45    <dimen name="abc_dropdownitem_icon_width">32dip</dimen>
46
47
48    <!-- The platform's desired fixed width for a dialog along the major axis
49         (the screen is in landscape). This may be either a fraction or a dimension.-->
50    <item type="dimen" name="dialog_fixed_width_major">320dp</item>
51    <!-- The platform's desired fixed width for a dialog along the minor axis
52         (the screen is in portrait). This may be either a fraction or a dimension.-->
53    <item type="dimen" name="dialog_fixed_width_minor">320dp</item>
54    <!-- The platform's desired fixed height for a dialog along the major axis
55         (the screen is in portrait). This may be either a fraction or a dimension.-->
56    <item type="dimen" name="dialog_fixed_height_major">80%</item>
57    <!-- The platform's desired fixed height for a dialog along the minor axis
58         (the screen is in landscape). This may be either a fraction or a dimension.-->
59    <item type="dimen" name="dialog_fixed_height_minor">100%</item>
60
61    <dimen name="abc_button_inset_vertical_material">6dp</dimen>
62    <dimen name="abc_button_inset_horizontal_material">@dimen/abc_control_inset_material</dimen>
63    <!-- Default inner padding within buttons -->
64    <dimen name="abc_button_padding_vertical_material">@dimen/abc_control_padding_material</dimen>
65    <dimen name="abc_button_padding_horizontal_material">8dp</dimen>
66
67    <!-- Default insets (outer padding) around controls -->
68    <dimen name="abc_control_inset_material">4dp</dimen>
69    <!-- Default inner padding within controls -->
70    <dimen name="abc_control_padding_material">4dp</dimen>
71    <!-- Default rounded corner for controls -->
72    <dimen name="abc_control_corner_material">2dp</dimen>
73
74    <dimen name="abc_edit_text_inset_horizontal_material">4dp</dimen>
75    <dimen name="abc_edit_text_inset_top_material">10dp</dimen>
76    <dimen name="abc_edit_text_inset_bottom_material">7dp</dimen>
77
78    <!-- Since optical insets are not available pre-v18, we add a small amount of padding -->
79    <dimen name="abc_switch_padding">3dp</dimen>
80
81    <dimen name="abc_dialog_padding_material">24dp</dimen>
82    <dimen name="abc_dialog_padding_top_material">18dp</dimen>
83
84    <!-- Dialog button bar height -->
85    <dimen name="abc_alert_dialog_button_bar_height">48dp</dimen>
86
87    <!-- Padding above and below selection dialog lists. -->
88    <dimen name="abc_dialog_list_padding_vertical_material">8dp</dimen>
89
90    <!-- The platform's desired minimum size for a dialog's width when it
91         is along the major axis (that is the screen is landscape).  This may
92         be either a fraction or a dimension. -->
93    <item type="dimen" name="abc_dialog_min_width_major">65%</item>
94
95    <!-- The platform's desired minimum size for a dialog's width when it
96         is along the minor axis (that is the screen is portrait).  This may
97         be either a fraction or a dimension. -->
98    <item type="dimen" name="abc_dialog_min_width_minor">95%</item>
99
100</resources>
101