1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2010 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 <!-- Ultra-simple test activity for testing CALL and DIAL intents. --> 18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:orientation="vertical" 20 android:gravity="center_vertical|center_horizontal" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:paddingTop="64dip" 24 > 25 26 <TextView android:id="@+id/label1" 27 android:text="@string/callDialTestLabel" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:layout_marginTop="30dip" 31 android:textAppearance="?android:attr/textAppearanceLarge" 32 /> 33 <View android:layout_width="1dip" 34 android:layout_height="1dip" 35 android:layout_weight="1" /> 36 37 <!-- Phone number (or potentially a SIP address) to be used --> 38 <EditText android:id="@+id/number" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:paddingLeft="32dip" 42 android:paddingRight="32dip" 43 android:paddingTop="32dip" 44 android:paddingBottom="32dip" 45 android:textAppearance="?android:attr/textAppearanceLarge" /> 46 <View android:layout_width="1dip" 47 android:layout_height="1dip" 48 android:layout_weight="2" /> 49 50 <LinearLayout 51 android:orientation="horizontal" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 > 55 <Button android:id="@+id/callButton" 56 android:text="@string/callCommand" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_marginLeft="20dip" 60 android:layout_marginRight="20dip" 61 android:paddingLeft="32dip" 62 android:paddingRight="32dip" 63 android:textAppearance="?android:attr/textAppearanceLarge" 64 /> 65 <Button android:id="@+id/dialButton" 66 android:text="@string/dialCommand" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_marginLeft="20dip" 70 android:layout_marginRight="20dip" 71 android:paddingLeft="32dip" 72 android:paddingRight="32dip" 73 android:textAppearance="?android:attr/textAppearanceLarge" 74 /> 75 </LinearLayout> 76 <View android:layout_width="1dip" 77 android:layout_height="1dip" 78 android:layout_weight="2" /> 79 80 <LinearLayout 81 android:orientation="vertical" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 > 85 <Button android:id="@+id/itelephonyCallButton" 86 android:text="@string/itelephonyCallCommand" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_marginLeft="20dip" 90 android:layout_marginRight="20dip" 91 android:paddingLeft="32dip" 92 android:paddingRight="32dip" 93 android:textAppearance="?android:attr/textAppearanceMedium" 94 /> 95 <Button android:id="@+id/itelephonyDialButton" 96 android:text="@string/itelephonyDialCommand" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:layout_marginLeft="20dip" 100 android:layout_marginRight="20dip" 101 android:paddingLeft="32dip" 102 android:paddingRight="32dip" 103 android:textAppearance="?android:attr/textAppearanceMedium" 104 /> 105 </LinearLayout> 106 <View android:layout_width="1dip" 107 android:layout_height="1dip" 108 android:layout_weight="4" /> 109 110 </LinearLayout> 111