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

Commit 52d27423 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Transparent notification shade."

parents bf208ec9 49f58407
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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.
-->

<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    >
    <gradient
        android:angle="90"
        android:endColor="@color/notification_list_shadow_top"
        android:startColor="#00000000"
        android:type="linear"
        />
</shape>
+17 −3
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
        android:paddingTop="3dp"
        android:paddingBottom="5dp"
        android:paddingRight="3dp"
        android:background="@drawable/notification_header_bg"
        >
        <com.android.systemui.statusbar.policy.DateView android:id="@+id/date"
            android:textAppearance="@style/TextAppearance.StatusBar.Clock"
@@ -104,12 +105,25 @@
            android:fadingEdge="none"
            android:overScrollMode="ifContentScrolls"
            >
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                >
                <com.android.systemui.statusbar.policy.NotificationRowLayout
                    android:id="@+id/latestItems"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    systemui:rowHeight="@dimen/notification_height"
                    android:background="@color/notification_list_shadow_top"
                    />
                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="16dp"
                    android:src="@drawable/notification_list_shadow"
                    android:scaleType="fitXY"
                />
            </LinearLayout>
        </ScrollView>

        <ImageView
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_weight="1"
         android:background="@drawable/status_bar_bg"
         android:background="@drawable/notification_tracking_bg"
         />

    <com.android.systemui.statusbar.phone.CloseDragHandle android:id="@+id/close"
+3 −0
Original line number Diff line number Diff line
@@ -25,4 +25,7 @@
    <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable>
    <color name="status_bar_recents_app_label_color">#ffffffff</color>
    <drawable name="status_bar_notification_row_background_color">#ff000000</drawable>
    <drawable name="notification_header_bg">#FF000000</drawable>
    <drawable name="notification_tracking_bg">#cc111315</drawable>
    <color name="notification_list_shadow_top">#80000000</color>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -1845,7 +1845,7 @@ public class PhoneStatusBar extends StatusBar {
                | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
                | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
                PixelFormat.OPAQUE);
                PixelFormat.TRANSLUCENT);
        if (ActivityManager.isHighEndGfx(mDisplay)) {
            lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
        }