1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 XML for screen providing ability to enter text, send some intents, 4 switch to gesture activity and test scroll down action. 5 --> 6 7 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 8 android:layout_width="fill_parent" 9 android:layout_height="fill_parent" 10 android:fillViewport="true" 11 android:orientation="vertical" > 12 13 <LinearLayout 14 android:layout_width="wrap_content" 15 android:layout_height="wrap_content" 16 android:orientation="vertical" > 17 18 <TextView 19 android:id="@+id/sendTitle" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:layout_marginTop="10dp" 23 android:text="@string/send_title" 24 android:textAppearance="?android:attr/textAppearanceLarge" 25 android:onClick="sendData" 26 android:clickable="true" /> 27 28 <EditText 29 android:id="@+id/sendDataEditText" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:layout_marginTop="10dp" 33 android:ems="10" 34 android:hint="@string/send_hint" /> 35 36 <Button 37 android:id="@+id/sendButton" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_marginTop="10dp" 41 android:text="@string/button_send" 42 android:onClick="sendData" /> 43 44 <EditText 45 android:id="@+id/enterDataEditText" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_marginTop="10dp" 49 android:ems="10" 50 android:hint="@string/enter_hint" /> 51 52 <TextView 53 android:id="@+id/enterDataResponseText" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_marginTop="10dp" 57 android:text="" 58 android:textAppearance="?android:attr/textAppearanceLarge" /> 59 60 <TextView 61 android:id="@+id/call" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_marginTop="10dp" 65 android:text="@string/send_intent_to_call" 66 android:textAppearance="?android:attr/textAppearanceLarge" /> 67 68 <EditText 69 android:id="@+id/sendDataToCallEditText" 70 android:layout_width="229dp" 71 android:layout_height="wrap_content" 72 android:layout_marginTop="10dp" 73 android:ems="10" 74 android:hint="@string/send_hint_for_call" /> 75 76 <Button 77 android:id="@+id/sendToCallButton" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_marginTop="10dp" 81 android:text="@string/button_call" 82 android:onClick="sendDataToCall" /> 83 84 85 86 <TextView 87 android:id="@+id/sendDataMessage" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:layout_marginTop="10dp" 91 android:text="@string/send_message" 92 android:textAppearance="?android:attr/textAppearanceLarge" /> 93 94 <EditText 95 android:id="@+id/sendDataToMessageEditText" 96 android:layout_width="290dp" 97 android:layout_height="wrap_content" 98 android:layout_marginTop="10dp" 99 android:ems="10" 100 android:hint="@string/send_hint" 101 android:text="@string/send_data_to_message_edit_text" /> 102 103 <Button 104 android:id="@+id/sendMessageButton" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_marginTop="10dp" 108 android:text="@string/button_to_message" 109 android:onClick="sendMessage" /> 110 111 <TextView 112 android:id="@+id/gotoBrowser" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:layout_marginTop="10dp" 116 android:text="@string/send_intent_to_browser" 117 android:textAppearance="?android:attr/textAppearanceLarge" /> 118 119 <EditText 120 android:id="@+id/sendDataToBrowserEditText" 121 android:layout_width="290dp" 122 android:layout_height="wrap_content" 123 android:layout_marginTop="10dp" 124 android:ems="10" 125 android:hint="@string/send_hint" /> 126 127 <Button 128 android:id="@+id/sendToBrowserButton" 129 android:layout_width="wrap_content" 130 android:layout_height="wrap_content" 131 android:layout_marginTop="10dp" 132 android:text="@string/button_to_browser" 133 android:onClick="sendDataToBrowser" /> 134 135 <TextView 136 android:id="@+id/pickContactTitle" 137 android:layout_width="wrap_content" 138 android:layout_height="wrap_content" 139 android:layout_marginTop="10dp" 140 android:text="@string/pick_title" 141 android:textAppearance="?android:attr/textAppearanceLarge" /> 142 143 <Button 144 android:id="@+id/pickButton" 145 android:layout_width="wrap_content" 146 android:layout_height="wrap_content" 147 android:layout_marginTop="10dp" 148 android:text="@string/button_pick" 149 android:onClick="pickContact" /> 150 151 <TextView 152 android:id="@+id/phoneNumber" 153 android:layout_width="wrap_content" 154 android:layout_height="wrap_content" 155 android:layout_marginTop="10dp" /> 156 157 <TextView 158 android:id="@+id/market" 159 android:layout_width="wrap_content" 160 android:layout_height="wrap_content" 161 android:layout_marginTop="10dp" 162 android:text="@string/send_intent_to_market" 163 android:textAppearance="?android:attr/textAppearanceLarge" /> 164 165 <EditText 166 android:id="@+id/sendToMarketData" 167 android:layout_width="229dp" 168 android:layout_height="wrap_content" 169 android:layout_marginTop="10dp" 170 android:ems="10" 171 android:hint="@string/send_hint_to_market" /> 172 173 <Button 174 android:id="@+id/sendToMarketButton" 175 android:layout_width="wrap_content" 176 android:layout_height="wrap_content" 177 android:layout_marginTop="10dp" 178 android:text="@string/button_market" 179 android:onClick="clickToMarket" /> 180 181 <TextView 182 android:id="@+id/gestureTitle" 183 android:layout_width="wrap_content" 184 android:layout_height="wrap_content" 185 android:layout_marginTop="10dp" 186 android:text="@string/gesture_title" 187 android:textAppearance="?android:attr/textAppearanceLarge" /> 188 189 <Button 190 android:id="@+id/goToGestureActivity" 191 android:layout_width="wrap_content" 192 android:layout_height="wrap_content" 193 android:layout_marginTop="10dp" 194 android:text="@string/button_gesture" 195 android:onClick="clickToGesture" /> 196 197 <Button 198 android:id="@+id/scrollButton" 199 android:layout_width="wrap_content" 200 android:layout_height="wrap_content" 201 android:layout_marginTop="10dp" 202 android:text="@string/launch_scroll_activity" 203 android:onClick="clickToScroll" /> 204 205 <Button 206 android:id="@+id/listButton" 207 android:layout_width="wrap_content" 208 android:layout_height="wrap_content" 209 android:layout_marginTop="10dp" 210 android:text="@string/launch_list_activity" 211 android:onClick="clickToList" /> 212 213 <Button 214 android:id="@+id/makeAlertDialog" 215 android:layout_width="wrap_content" 216 android:layout_height="wrap_content" 217 android:layout_marginTop="10dp" 218 android:text="@string/make_alert_dialog_button" 219 android:onClick="showDialog" /> 220 221 <Button 222 android:id="@+id/makePopupMenuButton" 223 android:layout_width="wrap_content" 224 android:layout_height="wrap_content" 225 android:layout_marginTop="10dp" 226 android:text="@string/make_popup_menu_button" 227 android:onClick="showPopupMenu" /> 228 229 <Button 230 android:id="@+id/makePopupViewButton" 231 android:layout_width="wrap_content" 232 android:layout_height="wrap_content" 233 android:layout_marginTop="10dp" 234 android:text="@string/make_popup_view_button" 235 android:onClick="showPopupView" /> 236 237 <!-- Keep this on bottom to test scrolling to views that are not showing. --> 238 <!-- Huge top margin to guarantee this being out of view on large screen layout. --> 239 <Button 240 android:id="@+id/bottomSendButton" 241 android:layout_width="wrap_content" 242 android:layout_height="wrap_content" 243 android:layout_marginTop="1000dp" 244 android:text="@string/button_send_bottom" 245 android:onClick="sendData" /> 246 247 <TextView 248 android:id="@+id/bottomSendTextView" 249 android:layout_width="wrap_content" 250 android:layout_height="wrap_content" 251 android:layout_marginTop="1000dp" 252 android:text="@string/send_title" 253 android:onClick="sendData" 254 android:clickable="true" /> 255 256 </LinearLayout> 257 </ScrollView> 258