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=".DelegateActivity"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="vertical"> 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="horizontal"> 33 34 <LinearLayout 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:orientation="vertical"> 38 39 <CheckBox 40 android:id="@+id/standalone-pager" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:text="@string/standalone_pager" /> 44 45 <CheckBox 46 android:id="@+id/standalone-large" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:text="@string/standalone_large" /> 50 51 <CheckBox 52 android:id="@+id/standalone-deferred" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:text="@string/standalone_deferred" /> 56 57 <CheckBox 58 android:id="@+id/standalone-pager-large" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:text="@string/standalone_pager_large" /> 62 63 <CheckBox 64 android:id="@+id/chat" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:text="@string/chat" /> 68 </LinearLayout> 69 70 <LinearLayout 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:orientation="vertical"> 74 75 <CheckBox 76 android:id="@+id/file_transfer" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:text="@string/file_transfer" /> 80 81 <CheckBox 82 android:id="@+id/geolocation_sms" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:text="@string/geolocation_sms" /> 86 87 <CheckBox 88 android:id="@+id/chatbot_session" 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:text="@string/chatbot_session" /> 92 93 <CheckBox 94 android:id="@+id/chatbot_standalone" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:text="@string/chatbot_standalone" /> 98 99 <CheckBox 100 android:id="@+id/chatbot_version" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:text="@string/chatbot_version" /> 104 </LinearLayout> 105 </LinearLayout> 106 107 <Button 108 android:id="@+id/init_btn" 109 android:layout_width="match_parent" 110 android:layout_height="wrap_content" 111 android:layout_marginTop="10dp" 112 android:text="@string/initialize_delegate" 113 android:textAllCaps="false" /> 114 115 <Button 116 android:id="@+id/destroy_btn" 117 android:layout_width="match_parent" 118 android:layout_height="wrap_content" 119 android:layout_marginTop="10dp" 120 android:text="@string/destroy_delegate" 121 android:textAllCaps="false" /> 122 123 <TextView 124 android:id="@+id/delegate_callback_result" 125 android:layout_width="match_parent" 126 android:layout_height="wrap_content" 127 android:layout_marginBottom="30dp" 128 android:scrollbars="vertical" 129 android:text="@string/callback_result" 130 android:textSize="15dp" 131 android:textStyle="bold" /> 132 133 </LinearLayout> 134</androidx.constraintlayout.widget.ConstraintLayout> 135