Fold in QS overlay resources and set flag to true
This also consolidates some resources that were size dependent if they are not needed. Bug: 185250134 Test: manual Change-Id: I98002a1b1f29d0bd68af1c6b76f5e4fb21cdb421
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
<!--
|
||||
~ Copyright (C) 2020 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<dimen name="qs_tile_height">106dp</dimen>
|
||||
<dimen name="qs_tile_margin_vertical">24dp</dimen>
|
||||
|
||||
<!-- The height of the qs customize header. Should be
|
||||
(qs_panel_padding_top (48dp) + brightness_mirror_height (48dp) + qs_tile_margin_top (18dp)) -
|
||||
(Toolbar_minWidth (56dp) + qs_tile_margin_top_bottom (12dp))
|
||||
-->
|
||||
<dimen name="qs_customize_header_min_height">46dp</dimen>
|
||||
<dimen name="qs_tile_margin_top">18dp</dimen>
|
||||
</resources>
|
||||
@@ -20,12 +20,11 @@
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- The maximum number of tiles in the QuickQSPanel -->
|
||||
<integer name="quick_qs_panel_max_columns">6</integer>
|
||||
|
||||
<!-- The maximum number of rows in the QuickSettings -->
|
||||
<integer name="quick_settings_max_rows">2</integer>
|
||||
|
||||
<integer name="quick_settings_num_columns">4</integer>
|
||||
|
||||
<!-- The number of columns that the top level tiles span in the QuickSettings -->
|
||||
<integer name="quick_settings_user_time_settings_tile_span">2</integer>
|
||||
|
||||
|
||||
@@ -23,12 +23,16 @@
|
||||
<dimen name="docked_divider_handle_height">16dp</dimen>
|
||||
|
||||
<dimen name="qs_tile_margin_top">8dp</dimen>
|
||||
<dimen name="qs_tile_margin_vertical">0dp</dimen>
|
||||
|
||||
<!-- The height of the qs customize header. Should be
|
||||
(qs_panel_padding_top (48dp) + brightness_mirror_height (48dp) + qs_tile_margin_top (8dp)) -
|
||||
(Toolbar_minWidth (56dp) + qs_tile_margin_top_bottom (4dp))
|
||||
-->
|
||||
<dimen name="qs_customize_header_min_height">44dp</dimen>
|
||||
|
||||
<dimen name="battery_detail_graph_space_top">9dp</dimen>
|
||||
<dimen name="battery_detail_graph_space_bottom">9dp</dimen>
|
||||
|
||||
<integer name="quick_settings_num_columns">4</integer>
|
||||
<dimen name="qs_detail_margin_top">0dp</dimen>
|
||||
|
||||
<dimen name="volume_tool_tip_right_margin">136dp</dimen>
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
<resources>
|
||||
<integer name="quick_settings_num_columns">3</integer>
|
||||
|
||||
<!-- Max number of columns for quick controls area -->
|
||||
<integer name="controls_max_columns">2</integer>
|
||||
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2012, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<dimen name="keyguard_clock_notifications_margin">36dp</dimen>
|
||||
|
||||
<dimen name="keyguard_indication_margin_bottom">80dp</dimen>
|
||||
|
||||
<!-- Screen pinning request width (just a little bit bigger than the three buttons here -->
|
||||
<dimen name="screen_pinning_request_width">490dp</dimen>
|
||||
<!-- Screen pinning request bottom button circle widths -->
|
||||
<dimen name="screen_pinning_request_button_width">162dp</dimen>
|
||||
<!-- Screen pinning request, controls padding on bigger screens, bigger nav bar -->
|
||||
<dimen name="screen_pinning_request_frame_padding">39dp</dimen>
|
||||
<!-- Screen pinning request side views to match nav bar
|
||||
In sw600dp we want the buttons centered so this fills the space,
|
||||
(screen_pinning_request_width - 3 * screen_pinning_request_button_width) / 2 -->
|
||||
<dimen name="screen_pinning_request_side_width">2dp</dimen>
|
||||
|
||||
<dimen name="navigation_key_width">162dp</dimen>
|
||||
<dimen name="navigation_key_padding">42dp</dimen>
|
||||
|
||||
<dimen name="battery_detail_graph_space_top">27dp</dimen>
|
||||
<dimen name="battery_detail_graph_space_bottom">27dp</dimen>
|
||||
|
||||
<dimen name="qs_tile_margin_top">32dp</dimen>
|
||||
<dimen name="qs_brightness_padding_top">6dp</dimen>
|
||||
<dimen name="qs_detail_margin_top">28dp</dimen>
|
||||
|
||||
<!-- In split shade mode notifications should be aligned to QS header so the value should be
|
||||
adjusted to qs header height and height of centered content inside of it:
|
||||
(quick_qs_offset_height (48dp) - ongoing_appops_chip_height (24dp) ) / 2 -->
|
||||
<dimen name="notifications_top_padding_split_shade">12dp</dimen>
|
||||
</resources>
|
||||
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2016, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<integer name="quick_settings_num_columns">6</integer>
|
||||
</resources>
|
||||
@@ -16,6 +16,5 @@
|
||||
-->
|
||||
<resources>
|
||||
<!-- Standard notification width + gravity -->
|
||||
<dimen name="notification_panel_width">644dp</dimen>
|
||||
|
||||
<dimen name="notification_panel_width">-1px</dimen> <!-- match_parent -->
|
||||
</resources>
|
||||
|
||||
@@ -86,13 +86,13 @@
|
||||
<bool name="config_navigation_bar_enable_auto_dim_no_visible_wallpaper">true</bool>
|
||||
|
||||
<!-- The maximum number of tiles in the QuickQSPanel -->
|
||||
<integer name="quick_qs_panel_max_columns">6</integer>
|
||||
<integer name="quick_qs_panel_max_columns">4</integer>
|
||||
|
||||
<!-- The number of columns in the QuickSettings -->
|
||||
<integer name="quick_settings_num_columns">3</integer>
|
||||
<integer name="quick_settings_num_columns">2</integer>
|
||||
|
||||
<!-- The number of rows in the QuickSettings -->
|
||||
<integer name="quick_settings_max_rows">3</integer>
|
||||
<integer name="quick_settings_max_rows">4</integer>
|
||||
|
||||
<!-- The number of columns that the top level tiles span in the QuickSettings -->
|
||||
<integer name="quick_settings_user_time_settings_tile_span">1</integer>
|
||||
|
||||
@@ -407,10 +407,10 @@
|
||||
|
||||
<!-- The height of the quick settings footer that holds the user switcher, settings icon,
|
||||
etc. -->
|
||||
<dimen name="qs_footer_height">48dp</dimen>
|
||||
<dimen name="qs_footer_height">96dp</dimen>
|
||||
|
||||
<!-- The size of each of the icon buttons in the QS footer -->
|
||||
<dimen name="qs_footer_action_button_size">@dimen/qs_footer_height</dimen>
|
||||
<dimen name="qs_footer_action_button_size">48dp</dimen>
|
||||
|
||||
<!-- (48dp - 44dp) / 2 -->
|
||||
<dimen name="qs_footer_action_inset">2dp</dimen>
|
||||
@@ -527,25 +527,25 @@
|
||||
<dimen name="pull_span_min">25dp</dimen>
|
||||
|
||||
<dimen name="qs_corner_radius">14dp</dimen>
|
||||
<dimen name="qs_tile_height">96dp</dimen>
|
||||
<dimen name="qs_tile_height">88dp</dimen>
|
||||
<!--notification_side_paddings + notification_content_margin_start - (qs_quick_tile_size - qs_tile_background_size) / 2 -->
|
||||
<dimen name="qs_tile_layout_margin_side">18dp</dimen>
|
||||
<dimen name="qs_tile_margin_horizontal">18dp</dimen>
|
||||
<dimen name="qs_tile_margin_horizontal">8dp</dimen>
|
||||
<dimen name="qs_tile_margin_horizontal_two_line">2dp</dimen>
|
||||
<dimen name="qs_tile_margin_vertical">2dp</dimen>
|
||||
<dimen name="qs_tile_margin_top_bottom">12dp</dimen>
|
||||
<dimen name="qs_tile_margin_top_bottom_negative">-12dp</dimen>
|
||||
<dimen name="qs_tile_margin_vertical">@dimen/qs_tile_margin_horizontal</dimen>
|
||||
<dimen name="qs_tile_margin_top_bottom">4dp</dimen>
|
||||
<dimen name="qs_tile_margin_top_bottom_negative">-4dp</dimen>
|
||||
<!-- The height of the qs customize header. Should be
|
||||
(qs_panel_padding_top (48dp) + brightness_mirror_height (48dp) + qs_tile_margin_top (0dp)) -
|
||||
(Toolbar_minWidth (56dp) + qs_tile_margin_top_bottom (12dp))
|
||||
(qs_panel_padding_top (48dp) + brightness_mirror_height (48dp) + qs_tile_margin_top (18dp)) -
|
||||
(Toolbar_minWidth (56dp) + qs_tile_margin_top_bottom (4dp))
|
||||
-->
|
||||
<dimen name="qs_customize_header_min_height">28dp</dimen>
|
||||
<dimen name="qs_tile_margin_top">0dp</dimen>
|
||||
<dimen name="qs_customize_header_min_height">54dp</dimen>
|
||||
<dimen name="qs_tile_margin_top">18dp</dimen>
|
||||
<dimen name="qs_tile_icon_background_stroke_width">-1dp</dimen>
|
||||
<dimen name="qs_tile_background_size">44dp</dimen>
|
||||
<dimen name="qs_tile_background_size">56dp</dimen>
|
||||
<dimen name="qs_icon_size">20dp</dimen>
|
||||
<dimen name="qs_label_container_margin">10dp</dimen>
|
||||
<dimen name="qs_quick_tile_size">48dp</dimen>
|
||||
<dimen name="qs_quick_tile_size">60dp</dimen>
|
||||
<dimen name="qs_quick_tile_padding">12dp</dimen>
|
||||
<dimen name="qs_header_gear_translation">16dp</dimen>
|
||||
<dimen name="qs_header_tile_margin_bottom">18dp</dimen>
|
||||
@@ -555,9 +555,9 @@
|
||||
Scaled @dimen/qs_page_indicator-width by .4f.
|
||||
-->
|
||||
<dimen name="qs_page_indicator_dot_width">6.4dp</dimen>
|
||||
<dimen name="qs_tile_side_label_padding">6dp</dimen>
|
||||
<dimen name="qs_tile_side_label_padding">12dp</dimen>
|
||||
<dimen name="qs_tile_icon_size">24dp</dimen>
|
||||
<dimen name="qs_tile_text_size">12sp</dimen>
|
||||
<dimen name="qs_tile_text_size">14sp</dimen>
|
||||
<dimen name="qs_tile_divider_height">1dp</dimen>
|
||||
<dimen name="qs_panel_padding">16dp</dimen>
|
||||
<dimen name="qs_dual_tile_height">112dp</dimen>
|
||||
@@ -568,7 +568,7 @@
|
||||
<dimen name="qs_tile_padding_bottom">16dp</dimen>
|
||||
<dimen name="qs_tile_spacing">4dp</dimen>
|
||||
<dimen name="qs_panel_padding_bottom">0dp</dimen>
|
||||
<dimen name="qs_panel_padding_top">@dimen/qs_header_tooltip_height</dimen>
|
||||
<dimen name="qs_panel_padding_top">48dp</dimen>
|
||||
<dimen name="qs_detail_header_height">56dp</dimen>
|
||||
<dimen name="qs_detail_header_padding">0dp</dimen>
|
||||
<dimen name="qs_detail_image_width">56dp</dimen>
|
||||
@@ -592,7 +592,6 @@
|
||||
<dimen name="qs_detail_item_icon_width">32dp</dimen>
|
||||
<dimen name="qs_detail_item_icon_marginStart">0dp</dimen>
|
||||
<dimen name="qs_detail_item_icon_marginEnd">20dp</dimen>
|
||||
<dimen name="qs_header_tooltip_height">48dp</dimen>
|
||||
<dimen name="qs_header_alarm_icon_size">@dimen/status_bar_icon_drawing_size</dimen>
|
||||
<dimen name="qs_header_mobile_icon_size">@dimen/status_bar_icon_drawing_size</dimen>
|
||||
<dimen name="qs_header_alarm_text_margin_start">6dp</dimen>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<!-- b/171917882 -->
|
||||
<bool name="flag_notification_twocolumn">false</bool>
|
||||
|
||||
<bool name="flag_qs_labels">false</bool>
|
||||
<bool name="flag_qs_labels">true</bool>
|
||||
|
||||
<!-- AOD/Lockscreen alternate layout -->
|
||||
<bool name="flag_keyguard_layout">false</bool>
|
||||
|
||||
@@ -2949,10 +2949,7 @@
|
||||
[CHAR LIMIT=NONE] -->
|
||||
<string name="battery_state_unknown_notification_text">Tap for more information</string>
|
||||
|
||||
<!-- No translation [CHAR LIMIT=0] -->
|
||||
<string name="qs_remove_labels" translatable="false"></string>
|
||||
|
||||
<string name="qs_tile_label_fontFamily" translatable="false">@*android:string/config_headlineFontFamily</string>
|
||||
<string name="qs_tile_label_fontFamily" translatable="false">@*android:string/config_headlineFontFamilyMedium</string>
|
||||
|
||||
<!-- Secondary label for alarm tile when there is no next alarm information [CHAR LIMIT=20] -->
|
||||
<string name="qs_alarm_tile_no_alarm">No alarm set</string>
|
||||
|
||||
Reference in New Issue
Block a user