1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2019 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 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/panel_container" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:background="@drawable/settings_panel_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:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:layout_weight="1" 35 android:gravity="start|center_vertical" 36 android:clipToPadding="false" 37 android:paddingStart="12dp" 38 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> 39 40 <LinearLayout 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:gravity="start|center_vertical" 44 android:minWidth="68dp" 45 android:orientation="horizontal" 46 android:clipToPadding="false" 47 android:paddingTop="4dp" 48 android:paddingBottom="4dp"> 49 <androidx.preference.internal.PreferenceImageView 50 android:id="@+id/app_icon" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:layout_gravity="center" 54 settings:maxWidth="48dp" 55 settings:maxHeight="48dp"/> 56 </LinearLayout> 57 58 <RelativeLayout 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_weight="1" 62 android:paddingTop="16dp" 63 android:paddingBottom="16dp"> 64 65 <TextView 66 android:id="@+id/app_title" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:singleLine="true" 70 android:textAppearance="?android:attr/textAppearanceListItem" 71 android:ellipsize="marquee"/> 72 73 <TextView 74 android:id="@+id/app_summary" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:layout_below="@+id/app_title" 78 android:layout_alignStart="@+id/app_title" 79 android:textAppearance="?android:attr/textAppearanceListItemSecondary" 80 android:textColor="?android:attr/textColorSecondary" 81 android:maxLines="10"/> 82 </RelativeLayout> 83 </LinearLayout> 84 85 <include layout="@layout/horizontal_divider"/> 86 87 <LinearLayout 88 android:id="@+id/single_network" 89 android:layout_width="match_parent" 90 android:layout_height="144dp" 91 android:paddingTop="24dp" 92 android:paddingBottom="16dp" 93 android:orientation="vertical"> 94 95 <ImageView 96 android:id="@+id/signal_strength" 97 android:layout_width="48dp" 98 android:layout_height="48dp" 99 android:layout_gravity="center_horizontal"/> 100 101 <TextView 102 android:id="@+id/single_ssid" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" 105 android:paddingTop="8dp" 106 android:singleLine="true" 107 android:gravity="center" 108 android:textAppearance="?android:attr/textAppearanceListItem" 109 android:ellipsize="marquee"/> 110 111 <TextView 112 android:id="@+id/single_status" 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:paddingTop="2dp" 116 android:gravity="center" 117 android:accessibilityLiveRegion="polite" 118 android:textColor="?android:attr/textColorSecondary"/> 119 </LinearLayout> 120 121 <LinearLayout 122 android:id="@+id/multiple_networks" 123 android:layout_width="match_parent" 124 android:layout_height="wrap_content" 125 android:orientation="vertical"> 126 <ListView 127 android:id="@+id/config_list" 128 android:layout_width="match_parent" 129 android:layout_height="wrap_content" 130 android:divider="@null" 131 android:scrollbarStyle="insideOverlay"/> 132 </LinearLayout> 133 134 <include layout="@layout/horizontal_divider"/> 135 136 <LinearLayout 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:orientation="horizontal" 140 android:paddingTop="8dp" 141 android:paddingBottom="8dp"> 142 143 <Button 144 android:id="@+id/cancel" 145 style="@android:style/Widget.DeviceDefault.Button.Borderless.Colored" 146 android:layout_width="wrap_content" 147 android:layout_height="48dp" 148 android:layout_marginStart="12dp" 149 android:text="@string/cancel"/> 150 151 <Space 152 android:layout_weight="1" 153 android:layout_width="0dp" 154 android:layout_height="match_parent"/> 155 156 <Button 157 android:id="@+id/save" 158 style="@android:style/Widget.DeviceDefault.Button.Borderless.Colored" 159 android:layout_width="wrap_content" 160 android:layout_height="48dp" 161 android:layout_marginEnd="12dp" 162 android:text="@string/save"/> 163 </LinearLayout> 164 </LinearLayout> 165</FrameLayout> 166