Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright (C) 2020 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/onboarding_half_shell_container" |
| 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_shell" |
| 30 | android:layout_width="@dimen/qs_panel_width" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:paddingTop="16dp" |
| 33 | android:paddingBottom="16dp" |
| 34 | android:paddingStart="16dp" |
| 35 | android:paddingEnd="16dp" |
| 36 | android:orientation="vertical" |
| 37 | android:gravity="bottom" |
| 38 | android:layout_gravity="center_horizontal|bottom" |
| 39 | android:background="@drawable/rounded_bg_full" |
| 40 | > |
| 41 | |
| 42 | <!-- We have a known number of rows that can be shown; just design them all here --> |
| 43 | <LinearLayout |
| 44 | android:id="@+id/show_at_top_tip" |
| 45 | android:layout_width="match_parent" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:padding="4dp" |
| 48 | android:orientation="horizontal" |
| 49 | > |
| 50 | <ImageView |
| 51 | android:id="@+id/bell_icon" |
| 52 | android:layout_width="24dp" |
| 53 | android:layout_height="24dp" |
| 54 | android:layout_gravity="center_vertical" |
| 55 | android:src="@drawable/ic_notifications_alert" |
| 56 | android:tint="?android:attr/colorControlNormal" /> |
| 57 | |
| 58 | <TextView |
| 59 | android:id="@+id/show_at_top_text" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="48dp" |
| 62 | android:paddingStart="16dp" |
| 63 | android:paddingEnd="16dp" |
| 64 | android:gravity="center_vertical|start" |
| 65 | android:textSize="15sp" |
| 66 | android:ellipsize="end" |
| 67 | android:maxLines="1" |
| 68 | android:text="@string/priority_onboarding_show_at_top_text" |
| 69 | style="@style/TextAppearance.NotificationInfo" |
| 70 | /> |
| 71 | |
| 72 | </LinearLayout> |
| 73 | |
| 74 | <LinearLayout |
| 75 | android:id="@+id/show_avatar_tip" |
| 76 | android:layout_width="match_parent" |
| 77 | android:layout_height="wrap_content" |
| 78 | android:padding="4dp" |
| 79 | android:orientation="horizontal" |
| 80 | > |
| 81 | <ImageView |
| 82 | android:id="@+id/avatar_icon" |
| 83 | android:layout_width="24dp" |
| 84 | android:layout_height="24dp" |
| 85 | android:layout_gravity="center_vertical" |
| 86 | android:src="@drawable/ic_person" |
| 87 | android:tint="?android:attr/colorControlNormal" /> |
| 88 | |
| 89 | <TextView |
| 90 | android:id="@+id/avatar_text" |
| 91 | android:layout_width="wrap_content" |
| 92 | android:layout_height="48dp" |
| 93 | android:paddingStart="16dp" |
| 94 | android:paddingEnd="16dp" |
| 95 | android:gravity="center_vertical|start" |
| 96 | android:textSize="15sp" |
| 97 | android:ellipsize="end" |
| 98 | android:maxLines="1" |
| 99 | android:text="@string/priority_onboarding_show_avatar_text" |
| 100 | style="@style/TextAppearance.NotificationInfo" |
| 101 | /> |
| 102 | |
| 103 | </LinearLayout> |
| 104 | |
| 105 | <!-- These rows show optionally --> |
| 106 | |
| 107 | <LinearLayout |
| 108 | android:id="@+id/floating_bubble_tip" |
| 109 | android:layout_width="match_parent" |
| 110 | android:layout_height="wrap_content" |
| 111 | android:padding="4dp" |
| 112 | android:orientation="horizontal" |
| 113 | > |
| 114 | |
| 115 | <ImageView |
| 116 | android:id="@+id/bubble_icon" |
| 117 | android:layout_width="24dp" |
| 118 | android:layout_height="24dp" |
| 119 | android:layout_gravity="center_vertical" |
| 120 | android:src="@drawable/ic_create_bubble" |
| 121 | android:tint="?android:attr/colorControlNormal" /> |
| 122 | |
| 123 | <TextView |
| 124 | android:id="@+id/bubble_text" |
| 125 | android:layout_width="wrap_content" |
| 126 | android:layout_height="48dp" |
| 127 | android:paddingStart="16dp" |
| 128 | android:paddingEnd="16dp" |
| 129 | android:gravity="center_vertical|start" |
| 130 | android:textSize="15sp" |
| 131 | android:ellipsize="end" |
| 132 | android:maxLines="1" |
| 133 | android:text="@string/priority_onboarding_appear_as_bubble_text" |
| 134 | style="@style/TextAppearance.NotificationInfo" |
| 135 | /> |
| 136 | |
| 137 | </LinearLayout> |
| 138 | |
| 139 | <LinearLayout |
| 140 | android:id="@+id/ignore_dnd_tip" |
| 141 | android:layout_width="match_parent" |
| 142 | android:layout_height="wrap_content" |
| 143 | android:padding="4dp" |
| 144 | android:orientation="horizontal" |
| 145 | > |
| 146 | |
| 147 | <ImageView |
| 148 | android:id="@+id/dnd_icon" |
| 149 | android:layout_width="24dp" |
| 150 | android:layout_height="24dp" |
| 151 | android:layout_gravity="center_vertical" |
| 152 | android:src="@drawable/moon" |
| 153 | android:tint="?android:attr/colorControlNormal" /> |
| 154 | |
| 155 | <TextView |
| 156 | android:id="@+id/dnd_text" |
| 157 | android:layout_width="wrap_content" |
| 158 | android:layout_height="48dp" |
| 159 | android:paddingStart="16dp" |
| 160 | android:paddingEnd="16dp" |
| 161 | android:gravity="center_vertical|start" |
| 162 | android:textSize="15sp" |
| 163 | android:ellipsize="end" |
| 164 | android:maxLines="1" |
| 165 | android:text="@string/priority_onboarding_ignores_dnd_text" |
| 166 | style="@style/TextAppearance.NotificationInfo" |
| 167 | /> |
| 168 | |
| 169 | </LinearLayout> |
| 170 | |
| 171 | <!-- Bottom button container --> |
| 172 | <RelativeLayout |
| 173 | android:id="@+id/button_container" |
| 174 | android:layout_width="match_parent" |
| 175 | android:layout_height="wrap_content" |
| 176 | android:padding="4dp" |
| 177 | android:orientation="horizontal" |
| 178 | > |
| 179 | <TextView |
| 180 | android:id="@+id/done_button" |
| 181 | android:text="@string/priority_onboarding_done_button_title" |
| 182 | android:layout_width="wrap_content" |
| 183 | android:layout_height="wrap_content" |
| 184 | android:layout_alignParentEnd="true" |
| 185 | android:gravity="end|center_vertical" |
| 186 | android:minWidth="@dimen/notification_importance_toggle_size" |
| 187 | android:minHeight="@dimen/notification_importance_toggle_size" |
| 188 | android:maxWidth="125dp" |
| 189 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 190 | |
| 191 | </RelativeLayout> |
| 192 | |
| 193 | </LinearLayout> |
| 194 | </FrameLayout> |