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" |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 33 | android:paddingStart="16dp" |
| 34 | android:paddingEnd="16dp" |
| 35 | android:orientation="vertical" |
| 36 | android:gravity="bottom" |
| 37 | android:layout_gravity="center_horizontal|bottom" |
| 38 | android:background="@drawable/rounded_bg_full" |
| 39 | > |
| 40 | |
Julia Reynolds | c535650 | 2020-06-08 16:14:58 -0400 | [diff] [blame] | 41 | <FrameLayout |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:clipChildren="false" |
| 45 | android:clipToPadding="false" |
| 46 | android:padding="12dp" |
| 47 | android:layout_gravity="center_horizontal" |
| 48 | > |
| 49 | |
| 50 | <!-- Big icon: 52x52, 12dp padding left + top, 16dp padding right --> |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 51 | <ImageView |
| 52 | android:id="@+id/conversation_icon" |
Julia Reynolds | c535650 | 2020-06-08 16:14:58 -0400 | [diff] [blame] | 53 | android:layout_width="@*android:dimen/conversation_avatar_size" |
| 54 | android:layout_height="@*android:dimen/conversation_avatar_size" |
| 55 | android:scaleType="centerCrop" |
| 56 | android:importantForAccessibility="no" |
| 57 | /> |
| 58 | |
| 59 | <FrameLayout |
| 60 | android:id="@+id/conversation_icon_badge" |
| 61 | android:layout_width="@*android:dimen/conversation_icon_size_badged" |
| 62 | android:layout_height="@*android:dimen/conversation_icon_size_badged" |
| 63 | android:layout_marginLeft="@*android:dimen/conversation_badge_side_margin" |
| 64 | android:layout_marginTop="@*android:dimen/conversation_badge_side_margin" |
| 65 | android:clipChildren="false" |
| 66 | android:clipToPadding="false" |
| 67 | > |
| 68 | <ImageView |
| 69 | android:id="@+id/conversation_icon_badge_bg" |
| 70 | android:layout_width="match_parent" |
| 71 | android:layout_height="match_parent" |
| 72 | android:layout_gravity="center" |
| 73 | android:src="@*android:drawable/conversation_badge_background" |
| 74 | android:forceHasOverlappingRendering="false" |
| 75 | /> |
| 76 | <ImageView |
| 77 | android:id="@+id/icon" |
| 78 | android:layout_width="match_parent" |
| 79 | android:layout_height="match_parent" |
| 80 | android:layout_margin="4dp" |
| 81 | android:layout_gravity="center" |
| 82 | android:forceHasOverlappingRendering="false" |
| 83 | /> |
| 84 | <ImageView |
| 85 | android:id="@+id/conversation_icon_badge_ring" |
| 86 | android:layout_width="wrap_content" |
| 87 | android:layout_height="wrap_content" |
| 88 | android:layout_gravity="center" |
| 89 | android:src="@*android:drawable/conversation_badge_ring" |
| 90 | android:forceHasOverlappingRendering="false" |
| 91 | android:clipToPadding="false" |
| 92 | android:scaleType="center" |
| 93 | /> |
| 94 | </FrameLayout> |
| 95 | </FrameLayout> |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 96 | |
| 97 | <TextView |
| 98 | android:id="@+id/title" |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 99 | android:layout_width="match_parent" |
| 100 | android:layout_height="wrap_content" |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 101 | android:gravity="center_horizontal" |
| 102 | android:layout_marginTop="16dp" |
| 103 | android:text="@string/priority_onboarding_title" |
| 104 | style="@style/TextAppearance.NotificationImportanceChannel" |
| 105 | /> |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 106 | |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 107 | <View |
| 108 | android:id="@+id/divider" |
| 109 | android:layout_width="match_parent" |
| 110 | android:layout_height="0.5dp" |
| 111 | android:layout_marginTop="20dp" |
| 112 | android:layout_marginBottom="20dp" |
| 113 | android:background="@color/material_grey_300" /> |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 114 | |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 115 | <TextView |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 116 | android:layout_width="match_parent" |
| 117 | android:layout_height="wrap_content" |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 118 | android:gravity="start" |
| 119 | android:text="@string/priority_onboarding_behavior" |
| 120 | style="@style/TextAppearance.NotificationImportanceChannelGroup" |
| 121 | /> |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 122 | |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 123 | <TextView |
| 124 | android:id="@+id/behaviors" |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 125 | android:layout_width="match_parent" |
| 126 | android:layout_height="wrap_content" |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 127 | android:gravity="start" |
| 128 | android:layout_marginTop="8dp" |
| 129 | style="@style/TextAppearance.NotificationImportanceChannelGroup" |
| 130 | /> |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 131 | |
| 132 | <!-- Bottom button container --> |
| 133 | <RelativeLayout |
| 134 | android:id="@+id/button_container" |
| 135 | android:layout_width="match_parent" |
| 136 | android:layout_height="wrap_content" |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 137 | android:layout_marginTop="32dp" |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 138 | android:orientation="horizontal" |
| 139 | > |
| 140 | <TextView |
Julia Reynolds | e03aa8f | 2020-06-02 11:21:38 -0400 | [diff] [blame] | 141 | android:id="@+id/settings_button" |
| 142 | android:text="@string/priority_onboarding_settings_button_title" |
| 143 | android:layout_width="wrap_content" |
| 144 | android:layout_height="wrap_content" |
| 145 | android:layout_alignParentStart="true" |
| 146 | android:gravity="start|center_vertical" |
| 147 | android:minWidth="@dimen/notification_importance_toggle_size" |
| 148 | android:minHeight="@dimen/notification_importance_toggle_size" |
| 149 | android:maxWidth="125dp" |
| 150 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 151 | <TextView |
Evan Laird | 31ca547 | 2020-04-08 17:45:24 -0400 | [diff] [blame] | 152 | android:id="@+id/done_button" |
| 153 | android:text="@string/priority_onboarding_done_button_title" |
| 154 | android:layout_width="wrap_content" |
| 155 | android:layout_height="wrap_content" |
| 156 | android:layout_alignParentEnd="true" |
| 157 | android:gravity="end|center_vertical" |
| 158 | android:minWidth="@dimen/notification_importance_toggle_size" |
| 159 | android:minHeight="@dimen/notification_importance_toggle_size" |
| 160 | android:maxWidth="125dp" |
| 161 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 162 | |
| 163 | </RelativeLayout> |
| 164 | |
| 165 | </LinearLayout> |
| 166 | </FrameLayout> |