Tony Wickham | fb63fe8 | 2018-01-16 12:14:06 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2018 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 | |
Tracy Zhou | 559d97c | 2018-04-07 23:54:46 -0700 | [diff] [blame] | 17 | <LinearLayout |
Tony Wickham | fb63fe8 | 2018-01-16 12:14:06 -0800 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Tracy Zhou | 559d97c | 2018-04-07 23:54:46 -0700 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
| 20 | android:layout_width="wrap_content" |
| 21 | android:paddingBottom="13dp" |
| 22 | android:orientation="vertical"> |
| 23 | |
| 24 | <LinearLayout |
Tony Wickham | fb63fe8 | 2018-01-16 12:14:06 -0800 | [diff] [blame] | 25 | android:layout_width="wrap_content" |
Tracy Zhou | e286c7c | 2018-05-24 10:56:38 -0700 | [diff] [blame] | 26 | android:layout_height="wrap_content" |
Tracy Zhou | 559d97c | 2018-04-07 23:54:46 -0700 | [diff] [blame] | 27 | android:paddingStart="24dp" |
| 28 | android:paddingEnd="4dp" |
| 29 | android:background="@drawable/recents_onboarding_toast_rounded_background" |
| 30 | android:layout_gravity="center_horizontal" |
| 31 | android:elevation="2dp" |
| 32 | android:orientation="horizontal"> |
| 33 | |
| 34 | <TextView |
| 35 | android:id="@+id/onboarding_text" |
Tracy Zhou | e286c7c | 2018-05-24 10:56:38 -0700 | [diff] [blame] | 36 | android:layout_width="0dp" |
Tracy Zhou | 559d97c | 2018-04-07 23:54:46 -0700 | [diff] [blame] | 37 | android:layout_height="wrap_content" |
Tracy Zhou | e286c7c | 2018-05-24 10:56:38 -0700 | [diff] [blame] | 38 | android:layout_weight="1" |
Tracy Zhou | 559d97c | 2018-04-07 23:54:46 -0700 | [diff] [blame] | 39 | android:layout_gravity="center_vertical" |
Tracy Zhou | 8b4bb86 | 2018-09-19 11:53:55 -0700 | [diff] [blame] | 40 | android:textColor="?attr/wallpaperTextColor" |
Tracy Zhou | 559d97c | 2018-04-07 23:54:46 -0700 | [diff] [blame] | 41 | android:textSize="16sp"/> |
| 42 | <ImageView |
| 43 | android:id="@+id/dismiss" |
| 44 | android:layout_width="40dp" |
| 45 | android:layout_height="40dp" |
| 46 | android:layout_gravity="center_vertical" |
| 47 | android:padding="10dp" |
| 48 | android:layout_marginStart="2dp" |
| 49 | android:layout_marginEnd="2dp" |
| 50 | android:alpha="0.7" |
| 51 | android:src="@drawable/ic_close_white" |
Tracy Zhou | 8b4bb86 | 2018-09-19 11:53:55 -0700 | [diff] [blame] | 52 | android:tint="?attr/wallpaperTextColor" |
Tracy Zhou | 7b7f6fc | 2018-05-16 20:50:23 -0700 | [diff] [blame] | 53 | android:background="?android:attr/selectableItemBackgroundBorderless" |
| 54 | android:contentDescription="@string/accessibility_desc_close"/> |
Tracy Zhou | 559d97c | 2018-04-07 23:54:46 -0700 | [diff] [blame] | 55 | </LinearLayout> |
| 56 | |
| 57 | <View |
| 58 | android:id="@+id/arrow" |
| 59 | android:elevation="2dp" |
| 60 | android:layout_width="10dp" |
| 61 | android:layout_height="8dp" |
| 62 | android:layout_marginTop="-2dp" |
| 63 | android:layout_gravity="center_horizontal"/> |
| 64 | </LinearLayout> |