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

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

Integrate Heads-up notifications into the shade

Change-Id: I4ca0fb4e76e7c974490538c168da0564fe97e0ae
parent ba67acff
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
        >
    <translate
        android:interpolator="@android:interpolator/overshoot"
        android:fromYDelta="-50%" android:toYDelta="0"
        android:duration="@android:integer/config_shortAnimTime" />
    <alpha 
        android:interpolator="@android:interpolator/decelerate_quad"
        android:fromAlpha="0.0" android:toAlpha="1.0"
        android:duration="@android:integer/config_shortAnimTime" />
</set>
+0 −12
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
        >
    <translate
            android:interpolator="@android:interpolator/overshoot"
            android:fromYDelta="0" android:toYDelta="-50%"
            android:duration="@android:integer/config_shortAnimTime" />
    <alpha
        android:interpolator="@android:interpolator/accelerate_quad"
        android:fromAlpha="1.0" android:toAlpha="0.0"
        android:duration="@android:integer/config_shortAnimTime" />
</set>
+0 −33
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 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.
-->
<!-- extends FrameLayout -->
<com.android.systemui.statusbar.policy.HeadsUpNotificationView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:background="@drawable/heads_up_scrim">

        <FrameLayout
                android:layout_width="@dimen/notification_panel_width"
                android:layout_height="wrap_content"
                android:layout_gravity="@integer/notification_panel_layout_gravity"
                android:paddingStart="@dimen/notification_side_padding"
                android:paddingEnd="@dimen/notification_side_padding"
                android:elevation="8dp"
                android:id="@+id/content_holder" />

</com.android.systemui.statusbar.policy.HeadsUpNotificationView>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@
    <integer name="heads_up_default_snooze_length_ms">60000</integer>

    <!-- Minimum display time for a heads up notification, in milliseconds. -->
    <integer name="heads_up_notification_minimum_time">3000</integer>
    <integer name="heads_up_notification_minimum_time">2000</integer>

    <!-- milliseconds before the heads up notification accepts touches. -->
    <integer name="heads_up_sensitivity_delay">700</integer>
+0 −1
Original line number Diff line number Diff line
@@ -330,7 +330,6 @@
         keyguard_clock_height_fraction_* for the difference between min and max.-->
    <dimen name="keyguard_clock_notifications_margin_min">24dp</dimen>
    <dimen name="keyguard_clock_notifications_margin_max">36dp</dimen>
    <dimen name="heads_up_window_height">250dp</dimen>

    <!-- The minimum amount the user needs to swipe to go to the camera / phone. -->
    <dimen name="keyguard_min_swipe_amount">110dp</dimen>
Loading