Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <TableLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:layout_toLeftOf="@+id/show_details"
     22     android:orientation="vertical"
     23     android:stretchColumns="2"
     24     android:shrinkColumns="2"
     25     >
     26     <TableRow
     27         android:id="@+id/date_row"
     28         >
     29         <TextView
     30             android:layout_column="1"
     31             android:text="@string/message_view_date_label"
     32             style="@style/message_details_label"
     33             />
     34 
     35         <!-- Put in some margin on the right to accomodate for the "hide
     36              details" icon -->
     37         <TextView
     38             android:id="@+id/date"
     39             style="@style/message_details_value"
     40             android:layout_width="match_parent"
     41             android:layout_height="wrap_content"
     42             android:layout_marginRight="32dip"
     43             />
     44     </TableRow>
     45     <TableRow
     46         android:id="@+id/to_row"
     47         >
     48         <TextView
     49             android:layout_column="1"
     50             android:text="@string/message_view_to_label"
     51             style="@style/message_details_label"
     52             />
     53         <TextView
     54             android:id="@+id/to"
     55             style="@style/message_details_value"
     56             />
     57     </TableRow>
     58     <TableRow
     59         android:id="@+id/cc_row"
     60         >
     61         <TextView
     62             android:layout_column="1"
     63             android:text="@string/message_view_cc_label"
     64             style="@style/message_details_label"
     65             />
     66         <TextView
     67             android:id="@+id/cc"
     68             style="@style/message_details_value"
     69             />
     70     </TableRow>
     71     <TableRow
     72         android:id="@+id/bcc_row"
     73         >
     74         <TextView
     75             android:layout_column="1"
     76             android:text="@string/message_view_bcc_label"
     77             style="@style/message_details_label"
     78             />
     79         <TextView
     80             android:id="@+id/bcc"
     81             style="@style/message_details_value"
     82             />
     83     </TableRow>
     84 </TableLayout>
     85