blob: c863e02d531345e84901055dddf0f7da971bf495 [file] [log] [blame]
Evan Laird47dc4542019-04-24 15:10:52 -04001<!--
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<com.android.systemui.statusbar.notification.row.ChannelRow
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/half_shelf_row"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:padding="8dp"
Evan Laird1c4b2102019-08-30 15:57:01 -040023 android:clickable="true"
24 android:orientation="horizontal"
25 android:foreground="?android:attr/selectableItemBackground" >
Evan Laird47dc4542019-04-24 15:10:52 -040026
Evan Lairdd3e55cf2019-05-23 16:58:50 -040027 <!-- This is where an icon would go *if we wanted one* **wink** -->
28 <Space
Evan Laird47dc4542019-04-24 15:10:52 -040029 android:id="@+id/icon"
30 android:layout_height="48dp"
31 android:layout_width="48dp"
32 android:layout_gravity="center_vertical"
33 android:padding="8dp"
34 />
35
36 <RelativeLayout
37 android:id="@+id/description_container"
38 android:layout_height="wrap_content"
39 android:layout_width="0dp"
40 android:layout_weight="1"
41 android:layout_gravity="center_vertical"
42 android:gravity="left|center_vertical"
43 android:orientation="vertical"
44 >
45 <TextView
46 android:id="@+id/channel_name"
47 android:layout_height="wrap_content"
48 android:layout_width="wrap_content"
49 android:paddingBottom="0dp"
50 android:paddingStart="8dp"
51 android:paddingEnd="8dp"
52 android:gravity="center_vertical|start"
53 android:textSize="14sp"
54 android:ellipsize="end"
55 android:maxLines="1"
56 style="@style/TextAppearance.NotificationInfo.Title"
57 />
58
59 <TextView
60 android:id="@+id/channel_description"
61 android:layout_height="wrap_content"
62 android:layout_width="wrap_content"
63 android:paddingStart="8dp"
64 android:paddingEnd="8dp"
65 android:gravity="center_vertical|start"
66 android:textSize="14sp"
67 android:ellipsize="end"
68 android:maxLines="1"
69 android:layout_below="@id/channel_name"
70 style="@style/TextAppearance.NotificationInfo.Secondary"
71 />
72 </RelativeLayout>
73
74 <Switch
75 android:id="@+id/toggle"
Evan Lairdd3ed5db2019-06-11 15:04:40 -040076 android:layout_height="48dp"
Evan Laird47dc4542019-04-24 15:10:52 -040077 android:layout_width="wrap_content"
78 android:layout_gravity="center_vertical"
79 android:padding="8dp"
80 />
81</com.android.systemui.statusbar.notification.row.ChannelRow>