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<!-- Demonstrates sending and receiving SMS messages. 18 See corresponding Java code SmsMessagingDemo.java 19--> 20 21<ScrollView 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent"> 25 <LinearLayout 26 android:orientation="vertical" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:padding="6dip"> 30 <TextView 31 android:textColor="#ff0000" 32 android:textStyle="bold" 33 android:text="@string/sms_warning" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" /> 36 <CheckBox 37 android:id="@+id/sms_enable_receiver" 38 android:text="@string/sms_enable_receiver" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" /> 41 <TableLayout 42 android:padding="6dip" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:stretchColumns="1"> 46 <TableRow android:layout_width="match_parent"> 47 <TextView android:text="@string/sms_recipient_label" /> 48 <EditText android:id="@+id/sms_recipient" /> 49 </TableRow> 50 <TableRow> 51 <TextView android:text="@string/sms_content_label" /> 52 <EditText android:id="@+id/sms_content" /> 53 </TableRow> 54 <TableRow> 55 <Button 56 android:id="@+id/sms_send_message" 57 android:text="@string/sms_send_message" 58 android:layout_column="1" /> 59 </TableRow> 60 <TableRow> 61 <TextView 62 android:id="@+id/sms_status" 63 android:layout_column="1" /> 64 </TableRow> 65 </TableLayout> 66 </LinearLayout> 67</ScrollView> 68