1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (C) 2007-2008 Esmertec AG. 5 * Copyright (C) 2007-2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 --> 20 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" > 23 24 <RelativeLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" > 27 28 <TextView android:id="@+id/tvDataChannel" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:text="@string/data_channel_label" 32 android:textStyle="bold" /> 33 34 <RadioGroup android:id="@+id/rgDataChannel" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:layout_marginLeft="10dip" 38 android:layout_below="@id/tvDataChannel" 39 android:checkedButton="@+id/HTTP" > 40 41 <RadioButton android:id="@+id/DATA_HTTP" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:textAppearance="?android:attr/textAppearanceSmall" 45 android:text="@string/http" /> 46 47 <RadioButton android:id="@+id/DATA_SMS" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:textAppearance="?android:attr/textAppearanceSmall" 51 android:focusable="false" 52 android:text="@string/sms" /> 53 54 </RadioGroup> 55 56 <TextView android:id="@+id/tvDataEncoding" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_below="@+id/rgDataChannel" 60 android:text="@string/data_encoding_label" 61 android:textStyle="bold" /> 62 63 <RadioGroup android:id="@+id/rgDataEncoding" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:layout_marginLeft="10dip" 67 android:layout_below="@id/tvDataEncoding" 68 android:checkedButton="@+id/ENC_WBXML" > 69 70 <RadioButton android:id="@+id/ENC_XML" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:textAppearance="?android:attr/textAppearanceSmall" 74 android:text="@string/xml" /> 75 76 <RadioButton android:id="@+id/ENC_WBXML" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:textAppearance="?android:attr/textAppearanceSmall" 80 android:text="@string/wbxml" /> 81 82 <RadioButton android:id="@+id/ENC_SMS" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:textAppearance="?android:attr/textAppearanceSmall" 86 android:focusable="false" 87 android:text="@string/sms" /> 88 89 </RadioGroup> 90 91 <TextView android:id="@+id/tvCirChannel" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:layout_below="@+id/rgDataEncoding" 95 android:text="@string/cir_channel_label" 96 android:textStyle="bold" /> 97 98 <RadioGroup android:id="@+id/rgCirChannel" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:layout_marginLeft="10dip" 102 android:layout_below="@id/tvCirChannel" 103 android:layout_marginBottom="3dip" 104 android:checkedButton="@+id/STCP" > 105 106 <RadioButton android:id="@+id/CIR_STCP" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:textAppearance="?android:attr/textAppearanceSmall" 110 android:text="@string/tcp" /> 111 112 <RadioButton android:id="@+id/CIR_SHTTP" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:textAppearance="?android:attr/textAppearanceSmall" 116 android:text="@string/http" /> 117 118 <RadioButton android:id="@+id/CIR_SSMS" 119 android:layout_width="wrap_content" 120 android:layout_height="wrap_content" 121 android:textAppearance="?android:attr/textAppearanceSmall" 122 android:textColor="?android:attr/textColorTertiary" 123 android:focusable="false" 124 android:text="@string/sms" /> 125 126 </RadioGroup> 127 128 <LinearLayout android:id="@+id/host" 129 android:layout_width="match_parent" 130 android:layout_height="wrap_content" 131 android:orientation="horizontal" 132 android:layout_below="@+id/rgCirChannel" 133 android:layout_marginBottom="3dip" > 134 135 <TextView android:id="@+id/tvHost" 136 android:layout_width="wrap_content" 137 android:layout_height="wrap_content" 138 android:layout_marginRight="2dip" 139 android:text="@string/host_label" 140 android:textStyle="bold" /> 141 142 <EditText android:id="@+id/etHost" 143 android:autoText="false" 144 android:layout_width="match_parent" 145 android:layout_height="wrap_content" 146 android:singleLine="true" 147 android:textAppearance="?android:attr/textAppearanceSmall" 148 android:scrollHorizontally="true" /> 149 150 </LinearLayout> 151 152 <LinearLayout android:id="@+id/msisdn" 153 android:layout_width="match_parent" 154 android:layout_height="wrap_content" 155 android:orientation="horizontal" 156 android:layout_below="@+id/host" 157 android:layout_marginBottom="3dip" > 158 159 <TextView 160 android:layout_width="wrap_content" 161 android:layout_height="wrap_content" 162 android:layout_marginRight="2dip" 163 android:text="@string/msisdn_label" 164 android:textStyle="bold" /> 165 166 <EditText android:id="@+id/etMsisdn" 167 android:autoText="false" 168 android:layout_width="match_parent" 169 android:layout_height="wrap_content" 170 android:singleLine="true" 171 android:textAppearance="?android:attr/textAppearanceSmall" 172 android:scrollHorizontally="true" /> 173 174 </LinearLayout> 175 176 <Button android:id="@+id/btnSave" 177 android:layout_width="wrap_content" 178 android:layout_height="wrap_content" 179 android:layout_below="@id/msisdn" 180 android:layout_alignParentRight="true" 181 android:text="@string/save" /> 182 183 </RelativeLayout> 184 </ScrollView> 185