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="match_parent" 22 android:layout_height="wrap_content" 23 android:background="@drawable/settings_panel_background" > 24 25 <LinearLayout 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:orientation="vertical"> 29 30 <LinearLayout 31 android:id="@+id/panel_header" 32 android:layout_width="match_parent" 33 android:layout_height="94dp" 34 android:gravity="start|center_vertical" 35 android:orientation="horizontal" 36 android:visibility="gone"> 37 38 <LinearLayout 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:orientation="horizontal" 42 android:layout_marginStart="16dp"> 43 <ImageView 44 android:id="@+id/title_icon" 45 android:layout_width="@dimen/output_switcher_panel_icon_size" 46 android:layout_height="@dimen/output_switcher_panel_icon_size"/> 47 </LinearLayout> 48 49 <LinearLayout 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_marginStart="16dp" 53 android:layout_marginEnd="16dp" 54 android:orientation="vertical"> 55 <TextView 56 android:id="@+id/header_title" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:ellipsize="end" 60 android:maxLines="1" 61 android:textColor="?android:attr/textColorPrimary" 62 android:textSize="20sp"/> 63 64 <TextView 65 android:id="@+id/header_subtitle" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:ellipsize="end" 69 android:maxLines="1" /> 70 71 </LinearLayout> 72 </LinearLayout> 73 74 <TextView 75 android:id="@+id/panel_title" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:gravity="center" 79 android:paddingBottom="24dp" 80 android:paddingTop="18dp" 81 android:textColor="?android:attr/textColorPrimary" 82 android:textSize="20sp"/> 83 84 <include layout="@layout/horizontal_divider"/> 85 86 <!-- Note: There is a landscape version of panel_slice_list which supports scrolling. --> 87 <include layout="@layout/panel_slice_list"/> 88 89 <include 90 android:id="@+id/footer_divider" 91 layout="@layout/horizontal_divider" 92 android:visibility="gone"/> 93 94 <LinearLayout 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:orientation="horizontal" 98 android:paddingTop="8dp" 99 android:paddingBottom="8dp"> 100 101 <Button 102 android:id="@+id/see_more" 103 style="@android:style/Widget.DeviceDefault.Button.Borderless.Colored" 104 android:layout_width="wrap_content" 105 android:layout_height="48dp" 106 android:layout_marginStart="12dp" 107 android:text="@string/see_more"/> 108 109 <Space 110 android:layout_weight="1" 111 android:layout_width="0dp" 112 android:layout_height="match_parent" /> 113 114 <Button 115 android:id="@+id/done" 116 style="@android:style/Widget.DeviceDefault.Button.Borderless.Colored" 117 android:layout_width="wrap_content" 118 android:layout_height="48dp" 119 android:layout_marginEnd="12dp" 120 android:text="@string/done"/> 121 </LinearLayout> 122 </LinearLayout> 123</FrameLayout>