1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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<androidx.constraintlayout.widget.ConstraintLayout 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=".UceActivity"> 23 24 25 <LinearLayout 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:orientation="vertical"> 29 30 <TextView 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:text="@string/uce_description" 34 android:textSize="15dp" 35 android:textStyle="bold" /> 36 37 <LinearLayout 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:orientation="horizontal"> 41 42 <TextView 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:text="@string/number" 46 android:textSize="15dp" 47 android:textStyle="bold" /> 48 49 <EditText 50 android:id="@+id/number_list" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:inputType="phone" 54 android:digits="0123456789+," 55 android:hint="+16505551212,+16505551213" /> 56 </LinearLayout> 57 58 <Button 59 android:id="@+id/capability_btn" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_marginTop="10dp" 63 android:text="@string/request_capability" 64 android:textAllCaps="false" /> 65 66 <Button 67 android:id="@+id/availability_btn" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:layout_marginTop="10dp" 71 android:layout_marginBottom="10dp" 72 android:text="@string/request_availability" 73 android:textAllCaps="false" /> 74 75 <TextView 76 android:id="@+id/capability_result" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:text="@string/result" 80 android:scrollbars="vertical" 81 android:textSize="15dp" 82 android:textStyle="bold" /> 83 </LinearLayout> 84</androidx.constraintlayout.widget.ConstraintLayout> 85