Caitlin Cassidy | b382874 | 2021-11-30 20:10:33 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright (C) 2021 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 | --> |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 16 | <!-- Wrap in a frame layout so that we can update the margins on the inner layout. (Since this view |
| 17 | is the root view of a window, we cannot change the root view's margins.) --> |
| 18 | <!-- Alphas start as 0 because the view will be animated in. --> |
Caitlin Shkuratov | 22bf019 | 2022-10-10 21:19:08 +0000 | [diff] [blame] | 19 | <com.android.systemui.temporarydisplay.chipbar.ChipbarRootView |
Caitlin Cassidy | b382874 | 2021-11-30 20:10:33 +0000 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Caitlin Cassidy | ecb939f | 2021-11-30 20:46:54 +0000 | [diff] [blame] | 21 | xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" |
Caitlin Shkuratov | 4fb68a9 | 2022-10-12 19:03:46 +0000 | [diff] [blame] | 22 | android:id="@+id/chipbar_root_view" |
Caitlin Cassidy | b382874 | 2021-11-30 20:10:33 +0000 | [diff] [blame] | 23 | android:layout_width="wrap_content" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 24 | android:layout_height="wrap_content"> |
Caitlin Cassidy | b382874 | 2021-11-30 20:10:33 +0000 | [diff] [blame] | 25 | |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 26 | <LinearLayout |
Caitlin Shkuratov | 4fb68a9 | 2022-10-12 19:03:46 +0000 | [diff] [blame] | 27 | android:id="@+id/chipbar_inner" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 28 | android:orientation="horizontal" |
Caitlin Cassidy | b382874 | 2021-11-30 20:10:33 +0000 | [diff] [blame] | 29 | android:layout_width="wrap_content" |
| 30 | android:layout_height="wrap_content" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 31 | android:padding="@dimen/media_ttt_chip_outer_padding" |
| 32 | android:background="@drawable/media_ttt_chip_background" |
| 33 | android:layout_marginTop="20dp" |
Caitlin Cassidy | bdb754d | 2022-06-15 21:09:30 +0000 | [diff] [blame] | 34 | android:layout_marginStart="@dimen/notification_side_paddings" |
| 35 | android:layout_marginEnd="@dimen/notification_side_paddings" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 36 | android:clipToPadding="false" |
| 37 | android:gravity="center_vertical" |
| 38 | android:alpha="0.0" |
| 39 | > |
Caitlin Cassidy | b382874 | 2021-11-30 20:10:33 +0000 | [diff] [blame] | 40 | |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 41 | <com.android.internal.widget.CachingIconView |
Caitlin Shkuratov | 4fb68a9 | 2022-10-12 19:03:46 +0000 | [diff] [blame] | 42 | android:id="@+id/start_icon" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 43 | android:layout_width="@dimen/media_ttt_app_icon_size" |
| 44 | android:layout_height="@dimen/media_ttt_app_icon_size" |
| 45 | android:layout_marginEnd="12dp" |
| 46 | android:alpha="0.0" |
| 47 | /> |
Caitlin Cassidy | a0cf542 | 2022-01-13 19:06:41 +0000 | [diff] [blame] | 48 | |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 49 | <TextView |
| 50 | android:id="@+id/text" |
Caitlin Cassidy | bdb754d | 2022-06-15 21:09:30 +0000 | [diff] [blame] | 51 | android:layout_width="0dp" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 52 | android:layout_height="wrap_content" |
Caitlin Cassidy | bdb754d | 2022-06-15 21:09:30 +0000 | [diff] [blame] | 53 | android:layout_weight="1" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 54 | android:textSize="@dimen/media_ttt_text_size" |
| 55 | android:textColor="?android:attr/textColorPrimary" |
| 56 | android:alpha="0.0" |
| 57 | /> |
Caitlin Cassidy | ecb939f | 2021-11-30 20:46:54 +0000 | [diff] [blame] | 58 | |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 59 | <!-- At most one of [loading, failure_icon, undo] will be visible at a time. --> |
| 60 | <ProgressBar |
| 61 | android:id="@+id/loading" |
| 62 | android:indeterminate="true" |
| 63 | android:layout_width="@dimen/media_ttt_status_icon_size" |
| 64 | android:layout_height="@dimen/media_ttt_status_icon_size" |
| 65 | android:layout_marginStart="@dimen/media_ttt_last_item_start_margin" |
| 66 | android:indeterminateTint="?androidprv:attr/colorAccentPrimaryVariant" |
| 67 | style="?android:attr/progressBarStyleSmall" |
| 68 | android:alpha="0.0" |
| 69 | /> |
Caitlin Cassidy | a0cf542 | 2022-01-13 19:06:41 +0000 | [diff] [blame] | 70 | |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 71 | <ImageView |
Caitlin Shkuratov | 4fb68a9 | 2022-10-12 19:03:46 +0000 | [diff] [blame] | 72 | android:id="@+id/error" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 73 | android:layout_width="@dimen/media_ttt_status_icon_size" |
| 74 | android:layout_height="@dimen/media_ttt_status_icon_size" |
| 75 | android:layout_marginStart="@dimen/media_ttt_last_item_start_margin" |
| 76 | android:src="@drawable/ic_warning" |
| 77 | android:tint="@color/GM2_red_500" |
| 78 | android:alpha="0.0" |
| 79 | /> |
Caitlin Cassidy | 5913ddb | 2021-11-30 19:44:13 +0000 | [diff] [blame] | 80 | |
Caitlin Shkuratov | 4fb68a9 | 2022-10-12 19:03:46 +0000 | [diff] [blame] | 81 | <!-- TODO(b/245610654): Re-name all the media-specific dimens to chipbar dimens instead. --> |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 82 | <TextView |
Caitlin Shkuratov | 4fb68a9 | 2022-10-12 19:03:46 +0000 | [diff] [blame] | 83 | android:id="@+id/end_button" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="wrap_content" |
Caitlin Cassidy | 9f1fc82 | 2022-05-16 20:41:46 +0000 | [diff] [blame] | 86 | android:textColor="?androidprv:attr/textColorOnAccent" |
| 87 | android:layout_marginStart="@dimen/media_ttt_last_item_start_margin" |
| 88 | android:textSize="@dimen/media_ttt_text_size" |
| 89 | android:paddingStart="@dimen/media_ttt_chip_outer_padding" |
| 90 | android:paddingEnd="@dimen/media_ttt_chip_outer_padding" |
| 91 | android:paddingTop="@dimen/media_ttt_undo_button_vertical_padding" |
| 92 | android:paddingBottom="@dimen/media_ttt_undo_button_vertical_padding" |
| 93 | android:layout_marginTop="@dimen/media_ttt_undo_button_vertical_negative_margin" |
| 94 | android:layout_marginBottom="@dimen/media_ttt_undo_button_vertical_negative_margin" |
| 95 | android:background="@drawable/media_ttt_undo_background" |
| 96 | android:alpha="0.0" |
| 97 | /> |
| 98 | |
| 99 | </LinearLayout> |
Caitlin Shkuratov | 22bf019 | 2022-10-10 21:19:08 +0000 | [diff] [blame] | 100 | </com.android.systemui.temporarydisplay.chipbar.ChipbarRootView> |