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

Commit c0fac72d authored by Selim Cinek's avatar Selim Cinek
Browse files

Added more spacing around notifications

The notification spacings were increased and
slightly adapted to spec to improve the
layout hierarchy.

Bug: 27431551
Change-Id: If603049c38b0f101c8e64813d9e5797c34aade0e
parent 3ac08178
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4206,7 +4206,8 @@ public class Notification implements Parcelable
            int i=0;
            final float density = mBuilder.mContext.getResources().getDisplayMetrics().density;
            int topPadding = (int) (5 * density);
            int bottomPadding = (int) (13 * density);
            int bottomPadding = mBuilder.mContext.getResources().getDimensionPixelSize(
                    com.android.internal.R.dimen.notification_content_margin_bottom);
            boolean first = true;
            while (i < mTexts.size() && i < rowIds.length) {
                CharSequence str = mTexts.get(i);
+2 −2
Original line number Diff line number Diff line
@@ -20,9 +20,9 @@
    android:id="@+id/notification_header"
    android:orientation="horizontal"
    android:layout_width="wrap_content"
    android:layout_height="48dp"
    android:layout_height="53dp"
    android:clipChildren="false"
    android:paddingTop="5dp"
    android:paddingTop="10dp"
    android:paddingBottom="16dp"
    android:paddingStart="@dimen/notification_content_margin_start"
    android:paddingEnd="16dp">
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:layout_marginStart="@dimen/notification_content_margin_start"
        android:layout_marginBottom="11dp"
        android:layout_marginBottom="15dp"
        android:layout_marginEnd="@dimen/notification_content_margin_end" >
        <include layout="@layout/notification_template_progress" />
    </FrameLayout>
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:layout_marginBottom="11dp"
            android:layout_marginBottom="15dp"
            android:layout_marginEnd="@dimen/notification_content_margin_end">
            <include layout="@layout/notification_template_progress" />
        </FrameLayout>
+5 −4
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@
    >
    <include layout="@layout/notification_template_header"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:layout_height="53dp"
        android:layout_gravity="start"/>
    <LinearLayout
        android:layout_width="match_parent"
@@ -50,9 +50,10 @@
            android:id="@+id/media_actions"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="-15dp"
            android:layout_marginTop="-21dp"
            android:paddingStart="8dp"
            android:paddingBottom="8dp"
            android:paddingBottom="12dp"
            android:gravity="top"
            android:orientation="horizontal"
            android:layoutDirection="ltr"
            >
@@ -65,7 +66,7 @@
        android:layout_height="@dimen/media_notification_expanded_image_max_size"
        android:minWidth="40dp"
        android:layout_marginEnd="16dp"
        android:layout_marginBottom="16dp"
        android:layout_marginBottom="20dp"
        android:layout_gravity="bottom|end"
        android:scaleType="centerCrop"
        />
Loading