1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2018 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<com.android.car.notification.CarNotificationView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/notification_view" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <FrameLayout 25 android:id="@+id/exit_button_container" 26 android:layout_width="@dimen/notification_scroll_margin" 27 android:layout_height="@dimen/notification_app_bar_height" 28 android:background="?android:attr/selectableItemBackground" 29 android:clickable="true" 30 android:focusable="true" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintTop_toTopOf="parent"> 33 <ImageButton 34 android:layout_width="@dimen/notification_primary_icon_size" 35 android:layout_height="@dimen/notification_primary_icon_size" 36 android:layout_gravity="center" 37 android:adjustViewBounds="true" 38 android:background="@null" 39 android:clickable="false" 40 android:focusable="false" 41 android:scaleType="fitXY" 42 android:src="@drawable/ic_clear"/> 43 </FrameLayout> 44 45 <TextView 46 android:id="@+id/notification_center_title" 47 android:layout_width="wrap_content" 48 android:layout_height="@dimen/notification_app_bar_height" 49 android:gravity="center_vertical" 50 android:text="@string/notifications" 51 style="@style/NotificationCenterAppTitle" 52 app:layout_constraintStart_toEndOf="@+id/exit_button_container"/> 53 54 <Button 55 android:id="@+id/clear_all_button" 56 android:layout_width="wrap_content" 57 android:layout_height="@dimen/notification_app_bar_height" 58 android:text="@string/clear_all" 59 style="@style/ClearAllButtonHeader" 60 app:layout_constraintEnd_toEndOf="parent"/> 61 62 <com.android.car.ui.recyclerview.CarUiRecyclerView 63 android:id="@+id/notifications" 64 android:layout_width="0dp" 65 android:layout_height="0dp" 66 android:orientation="vertical" 67 app:layout_constraintBottom_toBottomOf="parent" 68 app:layout_constraintEnd_toEndOf="parent" 69 app:layout_constraintStart_toStartOf="parent" 70 app:layout_constraintTop_toBottomOf="@+id/notification_center_title"/> 71 72</com.android.car.notification.CarNotificationView> 73