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

Commit 80a76276 authored by Chris Wren's avatar Chris Wren
Browse files

Add visual feedback for notification expandability.

Change-Id: I0b82a465a126a6d0ec6cf6af87dc56817765b995
parent cd3e6e22
Loading
Loading
Loading
Loading
+1.47 KiB
Loading image diff...
+1.46 KiB
Loading image diff...
+14 −2
Original line number Diff line number Diff line
@@ -4,6 +4,15 @@
    android:background="@*android:drawable/notification_bg"
    >

    <View
        android:id="@+id/top_glow"
        android:alpha="0"
        android:layout_width="match_parent"
        android:layout_height="@dimen/notification_divider_height"
        android:layout_gravity="top|center_horizontal"
        android:background="@drawable/top_divider_glow"
        />

    <Button
        android:id="@+id/veto"
        android:layout_width="48dp"
@@ -19,6 +28,7 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="@dimen/notification_divider_height"
        android:layout_marginTop="@dimen/notification_divider_height"
        android:focusable="true"
        android:clickable="true"
        >
@@ -31,10 +41,12 @@
    </com.android.systemui.statusbar.LatestItemView>

    <View
        android:id="@+id/bottom_glow"
        android:alpha="0"
        android:layout_width="match_parent"
        android:layout_height="@dimen/notification_divider_height"
        android:gravity="bottom"
        android:background="@*android:drawable/notification_bg"
        android:layout_gravity="bottom|center_horizontal"
        android:background="@drawable/bottom_divider_glow"
        />

</FrameLayout>
+2 −2
Original line number Diff line number Diff line
@@ -18,9 +18,9 @@
<resources>
    <!-- thickness (height) of each notification row, including any separators or padding -->
    <!-- Note: this is 64dip + 1px divider = 97px. -->
    <dimen name="notification_height">97px</dimen>
    <dimen name="notification_height">99px</dimen>

    <!-- thickness (height) of dividers between each notification row; see math for
         notification_height above -->
    <dimen name="notification_divider_height">1px</dimen>
    <dimen name="notification_divider_height">4px</dimen>
</resources>
+2 −2
Original line number Diff line number Diff line
@@ -19,9 +19,9 @@
    <!-- thickness (height) of each notification row, including any separators or padding -->
    <!-- note: this is the same value as in values/dimens.xml; the value is overridden in
         values-hdpi/dimens.xml and so we need to re-assert the general value here -->
    <dimen name="notification_height">65dp</dimen>
    <dimen name="notification_height">68dp</dimen>

    <!-- thickness (height) of dividers between each notification row -->
    <!-- same as in values/dimens.xml; see note at notification_height -->
    <dimen name="notification_divider_height">1dp</dimen>
    <dimen name="notification_divider_height">2dp</dimen>
</resources>
Loading