Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f846f1da authored by Brad Hinegardner's avatar Brad Hinegardner
Browse files

Add margin above ambient indication container

Add margin when not on stand so the text isn't as close to under display fingerprint sensor.

Support multiple device heights

Bug: 259681713
Test: verified manually with simulated now playing song, and physically on stand
Change-Id: I409b8e8662d726c8f08b8a2a6733d6dc9efe6830
parent 7ca3dd1d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -17,4 +17,7 @@

<resources>
    <dimen name="widget_big_font_size">54dp</dimen>

    <!-- Margin above the ambient indication container -->
    <dimen name="ambient_indication_container_margin_top">10dp</dimen>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@
    <!-- Minimum bottom margin under the security view -->
    <dimen name="keyguard_security_view_bottom_margin">60dp</dimen>

    <!-- Margin above the ambient indication container -->
    <dimen name="ambient_indication_container_margin_top">0dp</dimen>

    <dimen name="keyguard_eca_top_margin">18dp</dimen>
    <dimen name="keyguard_eca_bottom_margin">12dp</dimen>

+20 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2022 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>
    <!-- Margin above the ambient indication container -->
    <dimen name="ambient_indication_container_margin_top">15dp</dimen>
</resources>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -17,4 +17,7 @@
<resources>
    <!-- With the large clock, move up slightly from the center -->
    <dimen name="keyguard_large_clock_top_margin">-112dp</dimen>

    <!-- Margin above the ambient indication container -->
    <dimen name="ambient_indication_container_margin_top">20dp</dimen>
</resources>