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