Home | History | Annotate | Download | only in layout
      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         <TableLayout
     31             android:padding="6dip"
     32             android:layout_width="match_parent"
     33             android:layout_height="wrap_content"
     34             android:stretchColumns="1">
     35             <TableRow android:layout_width="match_parent">
     36                 <TextView android:text="@string/sms_recipient_label" />
     37                 <EditText android:id="@+id/sms_recipient" />
     38             </TableRow>
     39             <TableRow>
     40                 <TextView android:text="@string/sms_content_label" />
     41                 <EditText android:id="@+id/sms_content"
     42                           android:scrollHorizontally="true" />
     43             </TableRow>
     44         </TableLayout>
     45         <Button
     46             android:id="@+id/sms_send_message"
     47             android:text="@string/sms_send_message"
     48             android:layout_width="150dip"
     49             android:layout_height="wrap_content" />
     50         <Button
     51             android:id="@+id/sms_send_message_unlock_screen"
     52             android:text="@string/sms_send_message_unlock_screen"
     53             android:layout_width="150dip"
     54             android:layout_height="wrap_content" />
     55         <Button
     56             android:id="@+id/sms_send_multi_message"
     57             android:text="@string/sms_send_multi_message"
     58             android:layout_width="150dip"
     59             android:layout_height="wrap_content" />
     60         <Button
     61             android:id="@+id/sms_send_long_message"
     62             android:text="@string/sms_send_long_message"
     63             android:layout_width="150dip"
     64             android:layout_height="wrap_content" />
     65         <Button
     66             android:id="@+id/sms_prime_message"
     67             android:text="@string/sms_prime_message"
     68             android:layout_width="150dip"
     69             android:layout_height="wrap_content" />
     70         <Button
     71             android:id="@+id/turn_off_notification_message"
     72             android:text="@string/turn_off_notification_message"
     73             android:layout_width="150dip"
     74             android:layout_height="wrap_content" />
     75     </LinearLayout>
     76 </ScrollView>
     77