Matt Fritze | 90899e0 | 2018-10-16 12:41:42 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2018 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License |
| 16 | --> |
Matthew Fritze | c14316c | 2018-11-28 13:05:43 -0800 | [diff] [blame] | 17 | |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 18 | <FrameLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/panel_container" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
| 23 | android:background="@drawable/settings_panel_background" > |
Matthew Fritze | c14316c | 2018-11-28 13:05:43 -0800 | [diff] [blame] | 24 | |
Matthew Fritze | cafeaad | 2019-02-28 12:48:39 -0800 | [diff] [blame] | 25 | <LinearLayout |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="wrap_content" |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 28 | android:orientation="vertical"> |
Matthew Fritze | cafeaad | 2019-02-28 12:48:39 -0800 | [diff] [blame] | 29 | |
timhypeng | adae747 | 2020-01-16 10:14:13 +0800 | [diff] [blame] | 30 | <LinearLayout |
| 31 | android:id="@+id/panel_header" |
| 32 | android:layout_width="match_parent" |
Tim Peng | 9bdeef4 | 2020-05-27 13:29:55 +0800 | [diff] [blame] | 33 | android:layout_height="94dp" |
timhypeng | adae747 | 2020-01-16 10:14:13 +0800 | [diff] [blame] | 34 | android:gravity="start|center_vertical" |
| 35 | android:orientation="horizontal" |
| 36 | android:visibility="gone"> |
| 37 | |
| 38 | <LinearLayout |
Hugh Chen | db0aa65 | 2020-09-07 17:24:54 +0800 | [diff] [blame] | 39 | android:id="@+id/title_group" |
Tim Peng | 9bdeef4 | 2020-05-27 13:29:55 +0800 | [diff] [blame] | 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="wrap_content" |
timhypeng | adae747 | 2020-01-16 10:14:13 +0800 | [diff] [blame] | 42 | android:orientation="horizontal" |
Tim Peng | 205846c | 2020-04-16 14:09:53 +0800 | [diff] [blame] | 43 | android:layout_marginStart="16dp"> |
timhypeng | adae747 | 2020-01-16 10:14:13 +0800 | [diff] [blame] | 44 | <ImageView |
| 45 | android:id="@+id/title_icon" |
Tim Peng | 9bdeef4 | 2020-05-27 13:29:55 +0800 | [diff] [blame] | 46 | android:layout_width="@dimen/output_switcher_panel_icon_size" |
| 47 | android:layout_height="@dimen/output_switcher_panel_icon_size"/> |
timhypeng | adae747 | 2020-01-16 10:14:13 +0800 | [diff] [blame] | 48 | </LinearLayout> |
| 49 | |
| 50 | <LinearLayout |
| 51 | android:layout_width="match_parent" |
| 52 | android:layout_height="wrap_content" |
Tim Peng | 205846c | 2020-04-16 14:09:53 +0800 | [diff] [blame] | 53 | android:layout_marginStart="16dp" |
Tim Peng | b549c0f | 2020-05-08 13:49:08 +0800 | [diff] [blame] | 54 | android:layout_marginEnd="16dp" |
Tim Peng | 9bdeef4 | 2020-05-27 13:29:55 +0800 | [diff] [blame] | 55 | android:orientation="vertical"> |
timhypeng | adae747 | 2020-01-16 10:14:13 +0800 | [diff] [blame] | 56 | <TextView |
| 57 | android:id="@+id/header_title" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content" |
Tim Peng | b549c0f | 2020-05-08 13:49:08 +0800 | [diff] [blame] | 60 | android:ellipsize="end" |
| 61 | android:maxLines="1" |
timhypeng | adae747 | 2020-01-16 10:14:13 +0800 | [diff] [blame] | 62 | android:textColor="?android:attr/textColorPrimary" |
| 63 | android:textSize="20sp"/> |
| 64 | |
| 65 | <TextView |
| 66 | android:id="@+id/header_subtitle" |
| 67 | android:layout_width="wrap_content" |
| 68 | android:layout_height="wrap_content" |
| 69 | android:ellipsize="end" |
| 70 | android:maxLines="1" /> |
| 71 | |
| 72 | </LinearLayout> |
| 73 | </LinearLayout> |
| 74 | |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 75 | <TextView |
| 76 | android:id="@+id/panel_title" |
| 77 | android:layout_width="match_parent" |
| 78 | android:layout_height="wrap_content" |
| 79 | android:gravity="center" |
| 80 | android:paddingBottom="24dp" |
| 81 | android:paddingTop="18dp" |
lindatseng | e972b16 | 2019-04-19 15:40:20 -0700 | [diff] [blame] | 82 | android:textColor="?android:attr/textColorPrimary" |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 83 | android:textSize="20sp"/> |
Matthew Fritze | cafeaad | 2019-02-28 12:48:39 -0800 | [diff] [blame] | 84 | |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 85 | <include layout="@layout/horizontal_divider"/> |
Matthew Fritze | cafeaad | 2019-02-28 12:48:39 -0800 | [diff] [blame] | 86 | |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 87 | <!-- Note: There is a landscape version of panel_slice_list which supports scrolling. --> |
| 88 | <include layout="@layout/panel_slice_list"/> |
| 89 | |
Tim Peng | aeabfc3 | 2020-06-18 12:00:32 +0800 | [diff] [blame] | 90 | <include |
| 91 | android:id="@+id/footer_divider" |
| 92 | layout="@layout/horizontal_divider" |
| 93 | android:visibility="gone"/> |
| 94 | |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 95 | <LinearLayout |
| 96 | android:layout_width="match_parent" |
| 97 | android:layout_height="wrap_content" |
| 98 | android:orientation="horizontal" |
| 99 | android:paddingTop="8dp" |
| 100 | android:paddingBottom="8dp"> |
| 101 | |
| 102 | <Button |
| 103 | android:id="@+id/see_more" |
| 104 | style="@android:style/Widget.DeviceDefault.Button.Borderless.Colored" |
| 105 | android:layout_width="wrap_content" |
| 106 | android:layout_height="48dp" |
| 107 | android:layout_marginStart="12dp" |
| 108 | android:text="@string/see_more"/> |
| 109 | |
| 110 | <Space |
| 111 | android:layout_weight="1" |
| 112 | android:layout_width="0dp" |
| 113 | android:layout_height="match_parent" /> |
| 114 | |
| 115 | <Button |
| 116 | android:id="@+id/done" |
| 117 | style="@android:style/Widget.DeviceDefault.Button.Borderless.Colored" |
| 118 | android:layout_width="wrap_content" |
| 119 | android:layout_height="48dp" |
| 120 | android:layout_marginEnd="12dp" |
| 121 | android:text="@string/done"/> |
| 122 | </LinearLayout> |
Matthew Fritze | cafeaad | 2019-02-28 12:48:39 -0800 | [diff] [blame] | 123 | </LinearLayout> |
Matthew Fritze | b6fdd25 | 2019-03-08 08:15:00 -0800 | [diff] [blame] | 124 | </FrameLayout> |