xref: /aosp_15_r20/frameworks/base/packages/SystemUI/res-keyguard/values/dimens.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/apps/common/assets/res/any/dimens.xml
4**
5** Copyright 2006, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20<resources>
21
22    <!-- Size of the generic status lines keyguard's status view  -->
23    <dimen name="kg_status_line_font_size">14sp</dimen>
24
25    <!-- Maximum width of the sliding KeyguardSecurityContainer -->
26    <dimen name="keyguard_security_width">420dp</dimen>
27
28    <!-- Width for the keyguard pin input field -->
29    <dimen name="keyguard_pin_field_width">292dp</dimen>
30
31    <!-- height for the keyguard pin input field -->
32    <dimen name="keyguard_pin_field_height">56dp</dimen>
33
34    <!-- height for the keyguard password input field -->
35    <dimen name="keyguard_password_field_height">56dp</dimen>
36
37    <!-- width for the keyguard password input field -->
38    <dimen name="keyguard_password_field_width">276dp</dimen>
39
40    <!-- Height of the sliding KeyguardSecurityContainer
41         (includes 2x keyguard_security_view_top_margin) -->
42    <dimen name="keyguard_security_height">420dp</dimen>
43
44    <!-- pin/password field max height -->
45    <dimen name="keyguard_password_height">80dp</dimen>
46
47    <!-- Margin around the various security views -->
48    <dimen name="keyguard_security_view_top_margin">8dp</dimen>
49
50    <!-- Minimum bottom margin under the security view -->
51    <dimen name="keyguard_security_view_bottom_margin">60dp</dimen>
52
53    <!-- Margin above the ambient indication container -->
54    <dimen name="ambient_indication_container_margin_top">0dp</dimen>
55
56    <dimen name="keyguard_eca_top_margin">18dp</dimen>
57    <dimen name="keyguard_eca_bottom_margin">12dp</dimen>
58
59    <!-- Slice header -->
60    <dimen name="widget_title_font_size">20dp</dimen>
61    <dimen name="widget_title_line_height">24dp</dimen>
62    <dimen name="header_icon_size">16dp</dimen>
63    <!-- Slice subtitle -->
64    <dimen name="widget_label_font_size">16dp</dimen>
65    <dimen name="widget_label_line_height">20dp</dimen>
66    <!-- Clock without header -->
67    <dimen name="widget_big_font_size">54dp</dimen>
68    <dimen name="bottom_text_spacing_digital">0dp</dimen>
69    <!-- Clock with header -->
70    <dimen name="widget_small_font_size">@dimen/widget_title_font_size</dimen>
71    <dimen name="widget_vertical_padding">5dp</dimen>
72    <dimen name="widget_vertical_padding_with_header">25dp</dimen>
73    <dimen name="widget_vertical_padding_clock">12dp</dimen>
74    <!-- Subtitle paddings -->
75    <dimen name="widget_horizontal_padding">8dp</dimen>
76    <dimen name="widget_icon_size">18dp</dimen>
77    <dimen name="widget_icon_padding">8dp</dimen>
78    <!-- Notification shelf padding when dark -->
79
80    <!-- The y translation to apply at the start in appear animations. -->
81
82    <!-- The size of the dots in the PIN unlock method. -->
83    <dimen name="password_dot_size">9dp</dimen>
84
85    <!-- The size of the shape in the PIN unlock method. -->
86    <dimen name="password_shape_size">30dp</dimen>
87
88    <!-- The size of PIN text in the PIN unlock method. -->
89    <integer name="scaled_password_text_size">40</integer>
90
91    <!-- The padding between chars of the password view. -->
92    <dimen name="password_char_padding">8dp</dimen>
93
94    <!-- The vertical margin between the date and the owner info. -->
95
96    <!-- The translation for disappearing security views after having solved them. -->
97    <dimen name="disappear_y_translation">-50dp</dimen>
98
99    <!-- Dimens for animation for the Bouncer PIN view -->
100    <dimen name="pin_view_trans_y_entry">120dp</dimen>
101    <dimen name="pin_view_trans_y_entry_offset">10dp</dimen>
102
103    <!-- Spacing around each button used for PIN view -->
104    <dimen name="num_pad_key_width">72dp</dimen>
105    <dimen name="num_pad_entry_row_margin_bottom">12dp</dimen>
106    <dimen name="num_pad_row_margin_bottom">6dp</dimen>
107    <dimen name="num_pad_key_margin_end">12dp</dimen>
108
109    <!-- additional offset for clock switch area items -->
110    <dimen name="below_clock_padding_start">32dp</dimen>
111    <dimen name="below_clock_padding_end">16dp</dimen>
112    <dimen name="below_clock_padding_start_icons">28dp</dimen>
113    <dimen name="smartspace_padding_horizontal">16dp</dimen>
114
115    <!-- Proportion of the screen height to use to set the maximum height of the bouncer to when
116         the device is in the DEVICE_POSTURE_HALF_OPENED posture, for the PIN/pattern entry. 0 will
117         allow it to use the whole screen space, 0.6 will allow it to use just under half of the
118         screen. -->
119    <item name="half_opened_bouncer_height_ratio" type="dimen" format="float">0.0</item>
120
121    <!-- Proportion of the screen height to use to set the maximum height of the bouncer to when
122     the device is in the DEVICE_POSTURE_HALF_OPENED posture.
123
124     This value is only used when motion layout bouncer is used - when flag
125     landscape.enable_lockscreen (b/293252410) is on -->
126    <item name="motion_layout_half_fold_bouncer_height_ratio" type="dimen" format="float">0.55</item>
127
128    <!-- The actual amount of translation that is applied to the security when it animates from one
129         side of the screen to the other in one-handed or user switcher mode. Note that it will
130         always translate from the side of the screen to the other (it will "jump" closer to the
131         destination while the opacity is zero), but this controls how much motion will actually be
132         applied to it while animating. Larger values will cause it to move "faster" while
133         fading out/in. -->
134    <dimen name="security_shift_animation_translation">120dp</dimen>
135
136
137    <dimen name="bouncer_user_switcher_header_text_size">20sp</dimen>
138    <dimen name="bouncer_user_switcher_item_text_size">20sp</dimen>
139    <dimen name="bouncer_user_switcher_item_line_height">24sp</dimen>
140    <dimen name="bouncer_user_switcher_item_icon_size">28dp</dimen>
141    <dimen name="bouncer_user_switcher_item_icon_padding">12dp</dimen>
142    <dimen name="bouncer_user_switcher_width">248dp</dimen>
143    <dimen name="bouncer_user_switcher_popup_header_height">12dp</dimen>
144    <dimen name="bouncer_user_switcher_popup_divider_height">4dp</dimen>
145    <dimen name="bouncer_user_switcher_popup_items_divider_height">2dp</dimen>
146    <dimen name="bouncer_user_switcher_item_padding_vertical">10dp</dimen>
147    <dimen name="bouncer_user_switcher_item_padding_horizontal">12dp</dimen>
148    <dimen name="bouncer_user_switcher_header_padding_end">44dp</dimen>
149    <dimen name="bouncer_user_switcher_y_trans">80dp</dimen>
150
151    <!-- 2 * the margin + size should equal the plus_margin -->
152    <dimen name="user_switcher_icon_large_margin">16dp</dimen>
153    <dimen name="bouncer_user_switcher_icon_size">190dp</dimen>
154    <dimen name="bouncer_user_switcher_icon_size_plus_margin">222dp</dimen>
155
156    <dimen name="user_switcher_fullscreen_horizontal_gap">64dp</dimen>
157    <dimen name="user_switcher_icon_selected_width">8dp</dimen>
158    <dimen name="user_switcher_fullscreen_button_text_size">14sp</dimen>
159    <dimen name="user_switcher_fullscreen_button_padding">12dp</dimen>
160
161    <!-- Translation y for appear animation -->
162    <dimen name="keyguard_host_view_translation_y">80dp</dimen>
163
164    <!-- Attributes for placeholder dots in 6 digit PIN view -->
165    <dimen name="default_dot_diameter">34dp</dimen>
166    <dimen name="default_dot_spacing">0dp</dimen>
167
168    <!-- Weather clock smartspace scaling to apply for the weather clock -->
169    <item name="weather_clock_smartspace_scale" type="dimen" format="float">1.0</item>
170    <dimen name="weather_clock_smartspace_translateX">0dp</dimen>
171    <dimen name="weather_clock_smartspace_translateY">0dp</dimen>
172
173    <!-- Thickness of the progress bar we show for the SFPS based authentication. -->
174    <dimen name="sfps_progress_bar_thickness">6dp</dimen>
175    <!-- Padding from the edge of the screen for the progress bar -->
176    <dimen name="sfps_progress_bar_padding_from_edge">7dp</dimen>
177
178    <dimen name="keyguard_presentation_width">410dp</dimen>
179
180    <dimen name="appclips_backlinks_icon_size">24dp</dimen>
181</resources>
182