1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ~ Copyright (C) 2017 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:orientation="vertical" 20 android:layout_width="fill_parent" 21 android:layout_height="fill_parent"> 22 <CheckBox 23 android:id="@+id/checkIfPermittedBeforeCalling" 24 android:layout_width="wrap_content" 25 android:layout_height="wrap_content" 26 android:text="@string/checkIfPermittedBeforeCallingButton" /> 27 28 <TextView 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:text="This app provides two sample implementations of the self-managed ConnectionService API. Use this UI to add simulated self-managed calls:" /> 32 33 <LinearLayout 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:orientation="horizontal"> 37 <TextView 38 android:id="@+id/textView" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" android:layout_weight="1" 41 android:text="Acct:"/> 42 <RadioGroup 43 android:layout_width="match_parent" 44 android:layout_height="match_parent" 45 android:layout_weight="1" android:orientation="horizontal"> 46 <RadioButton 47 android:id="@+id/useAcct1Button" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:background="@color/test_call_a_color" 51 android:checked="true" android:text="1"/> 52 <RadioButton 53 android:id="@+id/useAcct2Button" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:background="@color/test_call_b_color" 57 android:text="2"/> 58 </RadioGroup> 59 <TextView 60 android:id="@+id/hasFocus" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" android:layout_weight="1" 63 android:text=" No Focus "/> 64 </LinearLayout> 65 66 <LinearLayout android:orientation="horizontal" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content"> 69 <TextView 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:text="Number:" /> 73 <EditText 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:id="@+id/phoneNumber" 77 android:text="tel:555-1212"/> 78 <CheckBox 79 android:id="@+id/holdable" 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" android:layout_weight="1" 82 android:checked="true" android:text="Holdable"/> 83 <CheckBox 84 android:id="@+id/videoCall" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" android:layout_weight="1" 87 android:text="Video"/> 88 </LinearLayout> 89 90 <LinearLayout android:orientation="horizontal" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content"> 93 94 <Button 95 android:id="@+id/placeOutgoingCallButton" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:text="Outgoing"/> 99 <Button 100 android:id="@+id/placeIncomingCallButton" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:text="Incoming"/> 104 <Button 105 android:id="@+id/handoverFrom" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:text="Accept Handover"/> 109 </LinearLayout> 110 111 <ListView 112 android:id="@+id/callList" 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:listSelector="@null" 116 android:divider="@null" /> 117 </LinearLayout>