Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 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 MMS messages using MMS APIs
     18      See corresponding Java code MmsDemo.java
     19 -->
     20 
     21 <LinearLayout
     22     xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:layout_width="match_parent"
     24     android:layout_height="match_parent"
     25     android:orientation="vertical">
     26     <TextView
     27             android:textColor="#ff0000"
     28             android:textStyle="bold"
     29             android:text="@string/sms_warning"
     30             android:layout_width="match_parent"
     31             android:layout_height="wrap_content" />
     32     <CheckBox
     33             android:id="@+id/mms_enable_receiver"
     34             android:text="@string/mms_enable_receiver"
     35             android:layout_width="wrap_content"
     36             android:layout_height="wrap_content" />
     37     <LinearLayout
     38             android:layout_width="match_parent"
     39             android:layout_height="wrap_content"
     40             android:orientation="horizontal">
     41         <TextView
     42                 android:layout_width="80dp"
     43                 android:layout_height="wrap_content"
     44                 android:gravity="center"
     45                 android:text="@string/mms_recipients_label"/>
     46         <EditText
     47                 android:id="@+id/mms_recipients_input"
     48                 android:layout_width="wrap_content"
     49                 android:layout_height="wrap_content"
     50                 android:layout_weight="1"/>
     51     </LinearLayout>
     52     <LinearLayout
     53             android:layout_width="match_parent"
     54             android:layout_height="wrap_content"
     55             android:orientation="horizontal">
     56         <TextView
     57                 android:layout_width="80dp"
     58                 android:layout_height="wrap_content"
     59                 android:gravity="center"
     60                 android:text="@string/mms_subject_label"/>
     61         <EditText
     62                 android:id="@+id/mms_subject_input"
     63                 android:layout_width="wrap_content"
     64                 android:layout_height="wrap_content"
     65                 android:layout_weight="1"/>
     66     </LinearLayout>
     67     <LinearLayout
     68             android:layout_width="match_parent"
     69             android:layout_height="wrap_content"
     70             android:orientation="horizontal">
     71         <TextView
     72                 android:layout_width="80dp"
     73                 android:layout_height="wrap_content"
     74                 android:gravity="center"
     75                 android:text="@string/mms_text_label"/>
     76         <EditText
     77                 android:id="@+id/mms_text_input"
     78                 android:layout_width="wrap_content"
     79                 android:layout_height="wrap_content"
     80                 android:layout_weight="1"/>
     81     </LinearLayout>
     82     <Button
     83         android:id="@+id/mms_send_button"
     84         android:layout_width="wrap_content"
     85         android:layout_height="wrap_content"
     86         android:layout_gravity="center"
     87         android:text="@string/mms_send_button_label"/>
     88     <TextView
     89             android:id="@+id/mms_send_status"
     90             android:layout_width="match_parent"
     91             android:layout_height="wrap_content"
     92             android:gravity="center"/>
     93 </LinearLayout>
     94