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

Commit eb96fa29 authored by Bryce Lee's avatar Bryce Lee
Browse files

Use padding instead of margins for DreamOverlay.

This changelist changes the DreamOverlayContainer to use padding
instead of margins to allow for animations within the spacing.

Test: manual
Bug: 274627474
Change-Id: I42e1054c4b1d7f328f58ae3bd83d8f211ed1da8e
parent 614f8384
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
@@ -25,11 +25,12 @@
        android:id="@+id/dream_overlay_content"
        android:id="@+id/dream_overlay_content"
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_height="0dp"
        android:layout_marginTop="@dimen/dream_overlay_container_margin_top"
        android:paddingTop="@dimen/dream_overlay_container_padding_top"
        android:layout_marginEnd="@dimen/dream_overlay_container_margin_end"
        android:paddingEnd="@dimen/dream_overlay_container_padding_end"
        android:layout_marginBottom="@dimen/dream_overlay_container_margin_bottom"
        android:paddingBottom="@dimen/dream_overlay_container_padding_bottom"
        android:layout_marginStart="@dimen/dream_overlay_container_margin_start"
        android:paddingStart="@dimen/dream_overlay_container_padding_start"

        android:clipToPadding="false"
        android:clipChildren="false"
        app:layout_constraintTop_toBottomOf="@id/dream_overlay_status_bar"
        app:layout_constraintTop_toBottomOf="@id/dream_overlay_status_bar"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        />
        />
+5 −5
Original line number Original line Diff line number Diff line
@@ -1632,11 +1632,11 @@
        .2
        .2
    </item>
    </item>


    <!-- The margins applied to the dream overlay container -->
    <!-- The padding applied to the dream overlay container -->
    <dimen name="dream_overlay_container_margin_start">0dp</dimen>
    <dimen name="dream_overlay_container_padding_start">0dp</dimen>
    <dimen name="dream_overlay_container_margin_end">0dp</dimen>
    <dimen name="dream_overlay_container_padding_end">0dp</dimen>
    <dimen name="dream_overlay_container_margin_top">0dp</dimen>
    <dimen name="dream_overlay_container_padding_top">0dp</dimen>
    <dimen name="dream_overlay_container_margin_bottom">0dp</dimen>
    <dimen name="dream_overlay_container_padding_bottom">0dp</dimen>


    <!-- The margin applied between complications -->
    <!-- The margin applied between complications -->
    <dimen name="dream_overlay_complication_margin">0dp</dimen>
    <dimen name="dream_overlay_complication_margin">0dp</dimen>