Evan Laird | 47dc454 | 2019-04-24 15:10:52 -0400 | [diff] [blame] | 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 | <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 Laird | 1c4b210 | 2019-08-30 15:57:01 -0400 | [diff] [blame] | 23 | android:clickable="true" |
| 24 | android:orientation="horizontal" |
| 25 | android:foreground="?android:attr/selectableItemBackground" > |
Evan Laird | 47dc454 | 2019-04-24 15:10:52 -0400 | [diff] [blame] | 26 | |
Evan Laird | d3e55cf | 2019-05-23 16:58:50 -0400 | [diff] [blame] | 27 | <!-- This is where an icon would go *if we wanted one* **wink** --> |
| 28 | <Space |
Evan Laird | 47dc454 | 2019-04-24 15:10:52 -0400 | [diff] [blame] | 29 | 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 Laird | d3ed5db | 2019-06-11 15:04:40 -0400 | [diff] [blame] | 76 | android:layout_height="48dp" |
Evan Laird | 47dc454 | 2019-04-24 15:10:52 -0400 | [diff] [blame] | 77 | android:layout_width="wrap_content" |
| 78 | android:layout_gravity="center_vertical" |
| 79 | android:padding="8dp" |
| 80 | /> |
| 81 | </com.android.systemui.statusbar.notification.row.ChannelRow> |