1<!-- 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="vertical"> 21 <TextView 22 android:layout_width="wrap_content" 23 android:layout_height="wrap_content" 24 android:text="Sender" 25 android:textSize="36sp"/> 26 <Button 27 android:id="@+id/back" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:textAllCaps="false" 31 android:text="Back"/> 32 <Button 33 android:id="@+id/request_connection" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:textAllCaps="false" 37 android:text="requestConnection()"/> 38 <Button 39 android:id="@+id/cancel_connection" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:textAllCaps="false" 43 android:text="cancelConnection()"/> 44 <Button 45 android:id="@+id/disconnect" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:textAllCaps="false" 49 android:text="disconnect()"/> 50 <Button 51 android:id="@+id/is_connected" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:textAllCaps="false" 55 android:text="isConnected()"/> 56 <LinearLayout 57 android:id="@+id/received_text_container" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content"> 60 <EditText 61 android:id="@+id/edit_text" 62 android:layout_width="200dp" 63 android:layout_height="wrap_content" 64 android:inputType="text" 65 android:hint="Hello world" 66 android:importantForAutofill="no"/> 67 <Button 68 android:id="@+id/send_text" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:textAllCaps="false" 72 android:text="Send text"/> 73 </LinearLayout> 74 <SeekBar 75 android:id="@+id/seek_bar" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" /> 78</LinearLayout> 79