Adjusting margins and paddings for portrait shade on large screens

1. Notifications were too narrow as side margins didn't account for NSSL padding
2. Increasing padding for sw720dp-port so that notification scrim takes more space

Fixes: 222472648
Test: compare lockscreen and shade to specs
Change-Id: I92cf020bc4763a47b5e0f99bfd68b8eb1f5675d2
This commit is contained in:
Michal Brzezinski
2022-03-08 17:50:11 +00:00
parent 81e377699b
commit ab8a78f9a5
4 changed files with 6 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
~ limitations under the License.
-->
<resources>
<dimen name="notification_panel_margin_horizontal">60dp</dimen>
<dimen name="notification_panel_margin_horizontal">48dp</dimen>
<dimen name="status_view_margin_horizontal">62dp</dimen>
<dimen name="keyguard_clock_top_margin">40dp</dimen>
<dimen name="keyguard_status_view_bottom_margin">40dp</dimen>

View File

@@ -21,8 +21,11 @@
for different hardware and product builds. -->
<resources>
<dimen name="status_view_margin_horizontal">124dp</dimen>
<dimen name="notification_panel_margin_horizontal">120dp</dimen>
<dimen name="keyguard_clock_top_margin">80dp</dimen>
<dimen name="keyguard_status_view_bottom_margin">80dp</dimen>
<dimen name="bouncer_user_switcher_y_trans">90dp</dimen>
<dimen name="notification_panel_margin_horizontal">96dp</dimen>
<dimen name="notification_side_paddings">40dp</dimen>
<dimen name="notification_section_divider_height">16dp</dimen>
</resources>

View File

@@ -139,7 +139,7 @@
<!-- Height of a heads up notification in the status bar -->
<dimen name="notification_max_heads_up_height_increased">188dp</dimen>
<!-- Side padding on the lockscreen on the side of notifications -->
<!-- Side padding on the side of notifications -->
<dimen name="notification_side_paddings">16dp</dimen>
<!-- padding between the heads up and the statusbar -->

View File

@@ -1233,10 +1233,6 @@ public class NotificationStackScrollLayoutController {
mView.forceNoOverlappingRendering(force);
}
public void setTranslationX(float translation) {
mView.setTranslationX(translation);
}
public void setExpandingVelocity(float velocity) {
mView.setExpandingVelocity(velocity);
}