1 <!-- 2 ~ Copyright (C) 2019 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License 15 --> 16 17 <FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/half_shelf_dialog" 20 android:orientation="vertical" 21 android:layout_width="wrap_content" 22 android:layout_height="wrap_content" 23 android:layout_gravity="center_horizontal|bottom" 24 android:paddingStart="4dp" 25 android:paddingEnd="4dp" 26 > 27 28 <LinearLayout 29 android:id="@+id/half_shelf" 30 android:layout_width="@dimen/qs_panel_width" 31 android:layout_height="wrap_content" 32 android:orientation="vertical" 33 android:gravity="bottom" 34 android:layout_gravity="center_horizontal|bottom" 35 android:background="@drawable/rounded_bg_full" > 36 37 <com.android.systemui.statusbar.notification.row.ChannelEditorListView 38 android:id="@+id/half_shelf_container" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:gravity="bottom" 42 android:orientation="vertical" > 43 44 <com.android.systemui.statusbar.notification.row.AppControlView 45 android:id="@+id/app_control" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:padding="8dp" 49 android:orientation="horizontal" > 50 51 <ImageView 52 android:id="@+id/icon" 53 android:layout_height="48dp" 54 android:layout_width="48dp" 55 android:padding="8dp" /> 56 57 <TextView 58 android:id="@+id/app_name" 59 android:layout_height="wrap_content" 60 android:layout_width="0dp" 61 android:layout_weight="1" 62 android:layout_gravity="center" 63 android:padding="8dp" 64 android:gravity="center_vertical|start" 65 android:textSize="15sp" 66 android:ellipsize="end" 67 android:maxLines="1" 68 style="@style/TextAppearance.NotificationInfo.Title" /> 69 70 <Switch 71 android:id="@+id/toggle" 72 android:layout_height="48dp" 73 android:layout_width="wrap_content" 74 android:layout_gravity="center_vertical" 75 android:padding="8dp" /> 76 </com.android.systemui.statusbar.notification.row.AppControlView> 77 <!-- divider view --> 78 <View 79 android:layout_width="match_parent" 80 android:layout_height="1dp" 81 android:background="@color/notification_channel_dialog_separator" 82 /> 83 84 <!-- ChannelRows get added dynamically --> 85 86 </com.android.systemui.statusbar.notification.row.ChannelEditorListView> 87 <!-- divider view --> 88 <View 89 android:layout_width="match_parent" 90 android:layout_height="1dp" 91 android:background="@color/notification_channel_dialog_separator" 92 /> 93 <RelativeLayout 94 android:id="@+id/bottom_actions" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:paddingTop="@dimen/notification_guts_button_spacing" 98 android:paddingStart="20dp" 99 android:paddingEnd="20dp" > 100 <TextView 101 android:id="@+id/see_more_button" 102 android:text="@string/see_more_title" 103 android:layout_width="wrap_content" 104 android:layout_height="wrap_content" 105 android:layout_alignParentStart="true" 106 android:layout_centerVertical="true" 107 android:gravity="start|center_vertical" 108 android:minWidth="@dimen/notification_importance_toggle_size" 109 android:minHeight="@dimen/notification_importance_toggle_size" 110 android:maxWidth="200dp" 111 style="@style/TextAppearance.NotificationInfo.Button"/> 112 <TextView 113 android:id="@+id/done_button" 114 android:text="@string/inline_ok_button" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:layout_centerVertical="true" 118 android:gravity="end|center_vertical" 119 android:maxWidth="125dp" 120 android:minWidth="@dimen/notification_importance_toggle_size" 121 android:minHeight="@dimen/notification_importance_toggle_size" 122 android:layout_alignParentEnd="true" 123 style="@style/TextAppearance.NotificationInfo.Button"/> 124 </RelativeLayout> 125 </LinearLayout> 126 </FrameLayout> 127