1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2018 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17<resources>
18    <dimen name="notification_app_bar_height">@*android:dimen/car_app_bar_height</dimen>
19    <dimen name="notification_scroll_margin">@*android:dimen/car_margin</dimen>
20    <dimen name="notification_list_divider_height">@*android:dimen/car_list_divider_height</dimen>
21    <dimen name="notification_headsup_card_margin_horizontal">165dp</dimen>
22    <dimen name="notification_card_margin_horizontal">140dp</dimen>
23
24    <!-- Header View -->
25    <dimen name="notification_card_header_height">@*android:dimen/car_card_action_bar_height</dimen>
26    <dimen name="notification_card_footer_height">@*android:dimen/car_card_action_bar_height</dimen>
27
28    <!-- Card View -->
29    <dimen name="button_height">64dp</dimen>
30    <dimen name="card_start_margin">@*android:dimen/car_padding_3</dimen>
31    <dimen name="card_end_margin">@*android:dimen/car_keyline_1</dimen>
32    <dimen name="card_min_top_padding">@*android:dimen/car_padding_3</dimen>
33    <dimen name="card_min_bottom_padding">@*android:dimen/car_padding_3</dimen>
34    <dimen name="card_header_margin_bottom">@*android:dimen/car_padding_0</dimen>
35    <dimen name="card_body_margin_top">@*android:dimen/car_padding_3</dimen>
36    <dimen name="card_body_margin_bottom">@*android:dimen/car_padding_3</dimen>
37    <dimen name="text_padding">@*android:dimen/car_padding_0</dimen>
38    <dimen name="unshown_count_start_margin">@*android:dimen/car_padding_1</dimen>
39    <dimen name="unread_message_count_margin">@*android:dimen/car_padding_3</dimen>
40    <dimen name="headsup_notification_top_margin">@*android:dimen/car_padding_1</dimen>
41    <dimen name="headsup_notification_big_icon_margin">@*android:dimen/car_padding_3</dimen>
42    <dimen name="in_group_timestamp_start_margin">@*android:dimen/car_padding_2</dimen>
43    <dimen name="item_spacing">@*android:dimen/car_padding_2</dimen>
44    <dimen name="header_small_icon_padding">@*android:dimen/car_padding_3</dimen>
45    <dimen name="body_bottom_padding">@*android:dimen/car_padding_3</dimen>
46    <dimen name="body_big_icon_margin">@*android:dimen/car_padding_4</dimen>
47    <dimen name="time_margin">@*android:dimen/car_padding_4</dimen>
48    <dimen name="expanded_package_name_margin">@*android:dimen/car_padding_4</dimen>
49    <dimen name="notification_card_radius">32dp</dimen>
50    <dimen name="notification_body_title_margin">@*android:dimen/car_padding_2</dimen>
51    <dimen name="notification_body_content_top_margin">8dp</dimen>
52    <dimen name="message_count_top_margin">12dp</dimen>
53    <dimen name="notification_title_icon_top_margin">4dp</dimen>
54    <dimen name="group_icon_fill_alpha">0.72</dimen>
55
56    <!-- Text -->
57    <dimen name="time_stamp_text_size_in_group">@*android:dimen/car_body3_size</dimen>
58    <dimen name="notification_text_max_width">950dp</dimen>
59
60    <!-- Action View -->
61    <dimen name="action_button_height">@dimen/button_height</dimen>
62    <dimen name="action_button_radius">32dp</dimen>
63    <dimen name="action_view_left_margin">16dp</dimen>
64    <dimen name="action_view_right_margin">16dp</dimen>
65    <dimen name="action_button_padding">@*android:dimen/car_padding_2</dimen>
66    <dimen name="action_button_padding_top">10dp</dimen>
67    <dimen name="action_button_padding_bottom">8dp</dimen>
68    <dimen name="action_button_spacing_start">16dp</dimen>
69    <dimen name="action_button_min_width">@*android:dimen/car_button_min_width</dimen>
70    <dimen name="car_action_button_icon_height">28dp</dimen>
71    <dimen name="car_action_button_icon_margin">8dp</dimen>
72    <dimen name="car_action_button_icon_width">28dp</dimen>
73
74    <!-- Icons -->
75    <dimen name="notification_primary_icon_size">@*android:dimen/car_primary_icon_size</dimen>
76    <dimen name="notification_secondary_icon_size">@*android:dimen/car_secondary_icon_size</dimen>
77    <dimen name="notification_touch_target_size">@*android:dimen/car_touch_target_size</dimen>
78    <dimen name="notification_heads_up_icon_size">@*android:dimen/car_touch_target_size</dimen>
79    <dimen name="media_action_icon_size">@*android:dimen/car_primary_icon_size</dimen>
80
81    <!-- Height and width to be used for the headsup container window.
82           - LayoutParams.MATCH_PARENT = -1
83           - LayoutParams.WRAP_CONTENT = -2 -->
84    <dimen name="headsup_container_height">-2dp</dimen>
85    <dimen name="headsup_container_width">-1dp</dimen>
86
87    <!-- HUN Scrim -->
88    <dimen name="headsup_scrim_height">464dp</dimen>
89
90    <!-- Y position for HUN window. With the default gravity it is ignored.
91         When using {@link Gravity#TOP} or {@link Gravity#BOTTOM} when implementing
92         CarHeadsUpNotificationContainer#getWindowManagerLayoutParams it provides an offset from
93         the given edge. -->
94    <dimen name="headsup_notification_window_y_offset">160dp</dimen>
95
96    <!-- Swipe Animation -->
97    <item name="error_factor_multiplier" format="float" type="dimen">1.2</item>
98    <item name="fling_percentage_of_max_translation_to_dismiss" format="float" type="dimen">0.05</item>
99    <item name="percentage_of_max_translation_to_dismiss" format="float" type="dimen">0.40</item>
100    <item name="max_percentage_of_max_translation_with_resistance" format="float" type="dimen">0.4</item>
101    <dimen name="touch_slop">20dp</dimen>
102    <!-- The maximum translation that a HUN can have when being swiped away. When set to zero the
103    view's height/width is used for this value -->
104    <!-- todo(b/302038229): support translation per direction -->
105    <dimen name="max_translation_headsup">0dp</dimen>
106
107    <!-- Dismiss button -->
108    <dimen name="dismiss_button_diameter">@*android:dimen/car_button_height</dimen>
109    <dimen name="dismiss_button_margin">@*android:dimen/car_padding_2</dimen>
110
111    <!-- Clear all button -->
112    <dimen name="clear_all_button_padding">@*android:dimen/car_padding_4</dimen>
113    <dimen name="clear_all_button_height">@dimen/button_height</dimen>
114    <dimen name="clear_all_button_min_width">156dp</dimen>
115    <dimen name="clear_all_button_radius">44dp</dimen>
116
117    <!-- Manage button -->
118    <dimen name="manage_button_height">@*android:dimen/car_button_height</dimen>
119    <dimen name="manage_button_top_margin">@*android:dimen/car_padding_4</dimen>
120
121    <dimen name="notification_header_text_padding_start">@*android:dimen/car_padding_2</dimen>
122    <dimen name="notification_header_text_padding_end">@*android:dimen/car_padding_2</dimen>
123    <dimen name="notification_header_text_padding_top">@*android:dimen/car_padding_2</dimen>
124    <dimen name="notification_header_text_padding_bottom">@*android:dimen/car_padding_2</dimen>
125    <dimen name="notification_header_text_margin">@*android:dimen/car_padding_3</dimen>
126
127</resources>
128