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<!-- Used for the list of networks in the KS Connectivity Tab --> 19 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:layout_gravity="fill_vertical" 24 android:orientation="horizontal" 25 android:weightSum="12"> 26 27 <!-- Requested Active indicator --> 28 <View 29 android:id="@+id/network_active" 30 android:layout_width="0dp" 31 android:layout_height="match_parent" 32 android:layout_weight=".1" 33 android:background="#ff3d3d"> 34 </View> 35 36 <!-- Item NetId indicator --> 37 <TextView 38 android:id="@+id/network_id" 39 android:layout_width="0dp" 40 android:layout_height="match_parent" 41 android:layout_weight=".9" 42 android:textSize="20sp" 43 android:textColor="#d4d4d4"> 44 </TextView> 45 46 <!-- Set of network values we want to view --> 47 <LinearLayout 48 android:layout_width="0dp" 49 android:layout_height="wrap_content" 50 android:orientation="vertical" 51 android:layout_weight="9"> 52 53 <TextView 54 android:id="@+id/network_type" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:textSize="20sp" 58 android:textColor="#d4d4d4"> 59 </TextView> 60 61 <TextView 62 android:id="@+id/network_state" 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:textSize="20sp" 66 android:textColor="#d4d4d4"> 67 </TextView> 68 69 <TextView 70 android:id="@+id/network_connected" 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:textSize="20sp" 74 android:textColor="#d4d4d4"> 75 </TextView> 76 77 <TextView 78 android:id="@+id/network_available" 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:textSize="20sp" 82 android:textColor="#d4d4d4"> 83 </TextView> 84 85 <TextView 86 android:id="@+id/network_roaming" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:textSize="20sp" 90 android:textColor="#d4d4d4"> 91 </TextView> 92 93 <TextView 94 android:id="@+id/network_iface" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:textSize="20sp" 98 android:textColor="#d4d4d4"> 99 </TextView> 100 101 <TextView 102 android:id="@+id/hw_address" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" 105 android:textSize="20sp" 106 android:textColor="#d4d4d4"> 107 </TextView> 108 109 <TextView 110 android:id="@+id/network_ip_addresses" 111 android:layout_width="match_parent" 112 android:layout_height="wrap_content" 113 android:textSize="20sp" 114 android:textColor="#d4d4d4"> 115 </TextView> 116 117 <TextView 118 android:id="@+id/network_dns" 119 android:layout_width="match_parent" 120 android:layout_height="wrap_content" 121 android:textSize="20sp" 122 android:textColor="#d4d4d4"> 123 </TextView> 124 125 <TextView 126 android:id="@+id/network_domains" 127 android:layout_width="match_parent" 128 android:layout_height="wrap_content" 129 android:textSize="20sp" 130 android:textColor="#d4d4d4"> 131 </TextView> 132 133 <TextView 134 android:id="@+id/network_routes" 135 android:layout_width="match_parent" 136 android:layout_height="wrap_content" 137 android:textSize="20sp" 138 android:textColor="#d4d4d4"> 139 </TextView> 140 141 <TextView 142 android:id="@+id/network_transports" 143 android:layout_width="match_parent" 144 android:layout_height="wrap_content" 145 android:textSize="20sp" 146 android:textColor="#d4d4d4"> 147 </TextView> 148 149 <TextView 150 android:id="@+id/network_capabilities" 151 android:layout_width="match_parent" 152 android:layout_height="wrap_content" 153 android:textSize="20sp" 154 android:textColor="#d4d4d4"> 155 </TextView> 156 157 <TextView 158 android:id="@+id/network_bandwidth" 159 android:layout_width="match_parent" 160 android:layout_height="wrap_content" 161 android:textSize="20sp" 162 android:textColor="#d4d4d4"> 163 </TextView> 164 165 </LinearLayout> 166 167 <!-- Buttons to trigger a request or something else --> 168 <LinearLayout 169 android:orientation="vertical" 170 android:layout_width="0dp" 171 android:layout_height="match_parent" 172 android:layout_weight="2" 173 android:weightSum="3"> 174 175 <Button android:id="@+id/network_request" 176 android:layout_width="match_parent" 177 android:layout_height="0dp" 178 android:layout_weight="1" 179 android:layout_marginBottom="2dp" 180 android:background="#505050" 181 android:text="Request" 182 android:textColor="#d4d4d4"/> 183 184 <Button android:id="@+id/network_default" 185 android:layout_width="match_parent" 186 android:layout_height="0dp" 187 android:layout_weight="1" 188 android:layout_marginBottom="2dp" 189 android:background="#505050" 190 android:text="Set Default" 191 android:textColor="#d4d4d4"/> 192 193 <Button android:id="@+id/network_report" 194 android:layout_width="match_parent" 195 android:layout_height="0dp" 196 android:layout_weight="1" 197 android:layout_marginBottom="2dp" 198 android:background="#505050" 199 android:text="Report" 200 android:textColor="#d4d4d4"/> 201 202 </LinearLayout> 203</LinearLayout> 204