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

Commit c622f1d6 authored by Brad Stenning's avatar Brad Stenning
Browse files

Add all the needed touch listeners and gesture detectors to allow for car

Test: on car product build

Change-Id: Icc44cae87033383535d6a0ab13203afb14cf83e0
(cherry picked from commit 3f55c3502e120bacea38162ccbff94e462b009ed)
parent 0b409e8c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
    android:layout_height="@dimen/status_bar_height">

    <include layout="@layout/car_top_navigation_bar"
        android:id="@+id/qs_car_top_bar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
+50 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2018 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.
-->
<com.android.car.notification.CarNotificationView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/notification_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <View
         android:id="@+id/glass_pane"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         app:layout_constraintTop_toTopOf="parent"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         android:translationZ="2dp"
        />

    <androidx.car.widget.PagedListView
        android:id="@+id/notifications"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:orientation="vertical"
        android:theme="@style/PagedListTheme"
        app:gutter="none"
        app:itemSpacing="@dimen/item_spacing"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:scrollBarEnabled="false"
        app:showPagedListViewDivider="false"/>

</com.android.car.notification.CarNotificationView>
+2 −2
Original line number Diff line number Diff line
@@ -37,8 +37,8 @@
    <color name="status_bar_background_color">#33000000</color>
    <drawable name="system_bar_background">@color/status_bar_background_color</drawable>

    <!-- The scrim color for the background of the notifications shade. -->
    <color name="scrim_behind_color">#172026</color>
    <!-- The background color of the notification shade -->
    <color name="notification_shade_background_color">#99000000</color>

    <!-- The color of the dividing line between grouped notifications. -->
    <color name="notification_divider_color">@*android:color/notification_action_list</color>
+1 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
    <string-array name="config_systemUIServiceComponents" translatable="false">
        <item>com.android.systemui.Dependency$DependencyCreator</item>
        <item>com.android.systemui.util.NotificationChannels</item>
        <item>com.android.systemui.notifications.NotificationsUI</item>
        <item>com.android.systemui.statusbar.CommandQueue$CommandQueueStart</item>
        <item>com.android.systemui.keyguard.KeyguardViewMediator</item>
        <item>com.android.systemui.recents.Recents</item>
@@ -52,6 +53,5 @@
        <item>com.android.systemui.globalactions.GlobalActionsComponent</item>
        <item>com.android.systemui.ScreenDecorations</item>
        <item>com.android.systemui.SliceBroadcastRelayHandler</item>
        <item>com.android.systemui.notifications.NotificationsUI</item>
    </string-array>
</resources>
+8 −0
Original line number Diff line number Diff line
@@ -24,4 +24,12 @@
    <!-- If the number is negative, the feature is disabled.
         If it's zero, we switch to guest immediately as we start driving. -->
    <integer name="driving_on_keyguard_timeout_ms">30000</integer>

    <!--Percentage of the screen height, from the bottom, that a notification panel being
    partially closed at will result in it remaining open if released-->
    <integer name="notification_settle_open_percentage">20</integer>
    <!--Percentage of the screen height, from the bottom, that a notification panel being peeked
    at will result in remaining closed the panel if released-->
    <integer name="notification_settle_close_percentage">80</integer>

</resources>
Loading