1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2023 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 tools:context=".ConnectivityToolsFragment" > 23 24<LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:padding="8dp" 28 android:paddingBottom="16dp" 29 android:orientation="vertical"> 30 31 <com.google.android.material.textfield.TextInputLayout 32 android:id="@+id/ping_server_ip_address_layout" 33 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_marginTop="8dp" 37 android:hint="Server IP Address"> 38 <AutoCompleteTextView 39 android:id="@+id/ping_server_ip_address_text" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:text="fdde:ad00:beef::ff:fe00:7400" 43 android:textSize="14sp"/> 44 </com.google.android.material.textfield.TextInputLayout> 45 46 <Button 47 android:id="@+id/ping_button" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_marginTop="8dp" 51 android:text="Ping" 52 android:textSize="20dp"/> 53 54 <TextView 55 android:id="@+id/ping_output_text" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:layout_marginTop="8dp" 59 android:scrollbars="vertical" 60 android:textIsSelectable="true"/> 61 62 <LinearLayout 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_marginTop="16dp" 66 android:orientation="horizontal" > 67 68 <com.google.android.material.textfield.TextInputLayout 69 android:id="@+id/udp_server_ip_address_layout" 70 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:hint="Server IP Address"> 74 <AutoCompleteTextView 75 android:id="@+id/udp_server_ip_address_text" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:text="fdde:ad00:beef::ff:fe00:7400" 79 android:textSize="14sp"/> 80 </com.google.android.material.textfield.TextInputLayout> 81 82 <com.google.android.material.textfield.TextInputLayout 83 android:id="@+id/udp_server_port_layout" 84 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:layout_marginLeft="2dp" 88 android:hint="Server Port"> 89 <AutoCompleteTextView 90 android:id="@+id/udp_server_port_text" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:inputType="number" 94 android:text="12345" 95 android:textSize="14sp"/> 96 </com.google.android.material.textfield.TextInputLayout> 97 </LinearLayout> 98 99 <com.google.android.material.textfield.TextInputLayout 100 android:id="@+id/udp_message_layout" 101 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:layout_marginTop="8dp" 105 android:hint="UDP Message"> 106 <com.google.android.material.textfield.TextInputEditText 107 android:id="@+id/udp_message_text" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" 110 android:text="Hello Thread!" 111 android:textSize="14sp"/> 112 </com.google.android.material.textfield.TextInputLayout> 113 114 <com.google.android.material.switchmaterial.SwitchMaterial 115 android:id="@+id/switch_bind_thread_network" 116 android:layout_width="wrap_content" 117 android:layout_height="wrap_content" 118 android:checked="true" 119 android:text="Bind to Thread network" /> 120 121 <Button 122 android:id="@+id/send_udp_button" 123 android:layout_width="wrap_content" 124 android:layout_height="wrap_content" 125 android:layout_marginTop="8dp" 126 android:text="Send UDP Message" 127 android:textSize="20dp"/> 128 129 <TextView 130 android:id="@+id/udp_output_text" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" 133 android:layout_marginTop="8dp" 134 android:scrollbars="vertical" 135 android:textIsSelectable="true"/> 136</LinearLayout> 137</ScrollView> 138