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 --> 17 18<FrameLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/panel_container" 21 android:layout_width="@dimen/settings_panel_width" 22 android:layout_height="wrap_content" 23 android:fitsSystemWindows="true" 24 android:layout_gravity="center_horizontal" 25 android:background="@drawable/settings_panel_rounded_top_corner_background" > 26 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:orientation="vertical"> 31 32 <LinearLayout 33 android:id="@+id/panel_header" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:layout_marginStart="@dimen/settings_panel_title_margin" 37 android:layout_marginEnd="@dimen/settings_panel_title_margin" 38 android:layout_marginTop="@dimen/settings_panel_title_margin" 39 android:layout_marginBottom="@dimen/settings_panel_title_margin" 40 android:gravity="start|center_vertical" 41 android:orientation="horizontal" 42 android:visibility="gone"> 43 44 <LinearLayout 45 android:id="@+id/title_group" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:orientation="horizontal" 49 android:layout_marginStart="16dp"> 50 <ImageView 51 android:id="@+id/title_icon" 52 android:layout_width="@dimen/output_switcher_panel_icon_size" 53 android:layout_height="@dimen/output_switcher_panel_icon_size"/> 54 </LinearLayout> 55 56 <LinearLayout 57 android:id="@+id/header_layout" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:orientation="vertical"> 61 62 <TextView 63 android:id="@+id/header_title" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:layout_marginBottom="8dp" 67 android:ellipsize="end" 68 android:maxLines="1" 69 android:textColor="?android:attr/textColorPrimary" 70 android:textSize="24sp" 71 android:fontFamily="@*android:string/config_headlineFontFamilyMedium"/> 72 73 <TextView 74 android:id="@+id/header_subtitle" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:ellipsize="end" 78 android:maxLines="1" 79 android:textColor="?android:attr/textColorSecondary" 80 android:textSize="14sp" 81 android:fontFamily="@*android:string/config_headlineFontFamilyMedium" /> 82 </LinearLayout> 83 </LinearLayout> 84 85 <TextView 86 android:id="@+id/panel_title" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:layout_marginTop="@dimen/settings_panel_title_margin" 90 android:layout_marginBottom="@dimen/settings_panel_title_margin_bottom" 91 android:gravity="center" 92 android:textColor="?android:attr/textColorPrimary" 93 android:textSize="24sp" 94 android:fontFamily="@*android:string/config_headlineFontFamilyMedium"/> 95 96 <ProgressBar 97 android:id="@+id/progress_bar" 98 android:indeterminate="true" 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:minHeight="1dp" 102 android:maxHeight="1dp" 103 android:visibility="gone" 104 style="@style/TrimmedHorizontalProgressBar"/> 105 106 <!-- Note: There is a landscape version of panel_slice_list which supports scrolling. --> 107 <include layout="@layout/panel_slice_list"/> 108 109 <LinearLayout 110 android:layout_width="match_parent" 111 android:layout_height="wrap_content" 112 android:orientation="horizontal" 113 android:layout_marginTop="16dp" 114 android:layout_marginHorizontal="24dp" 115 android:layout_marginBottom="18dp"> 116 117 <Button 118 android:id="@+id/see_more" 119 style="@style/PanelOptionRoundedOutlinedButton" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content" 122 android:minWidth="0dp" 123 android:text="@string/settings_button"/> 124 125 <Space 126 android:layout_weight="1" 127 android:layout_width="0dp" 128 android:layout_height="match_parent" /> 129 130 <Button 131 android:id="@+id/done" 132 style="@style/PanelOptionRoundedSolidButton" 133 android:layout_width="wrap_content" 134 android:layout_height="wrap_content" 135 android:minWidth="0dp" 136 android:text="@string/done"/> 137 </LinearLayout> 138 </LinearLayout> 139</FrameLayout>