replicant-packages_apps_Email/res/layout/message_view_details.xml
Ben Komalo 17501fc0ca Fix UI issue with expanding details.
- the show/hide details icon no longer jumps
- the expanded details now doesn't take up the entire screen on tablets

Bug: 5009046
Change-Id: If7f3451e28ba09928cc9b8aa156779f076948979
2011-07-12 17:20:13 -07:00

85 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/show_details"
android:orientation="vertical"
android:stretchColumns="2"
android:shrinkColumns="2"
>
<TableRow
android:id="@+id/date_row"
>
<TextView
android:layout_column="1"
android:text="@string/message_view_date_label"
style="@style/message_details_label"
/>
<!-- Put in some margin on the right to accomodate for the "hide
details" icon -->
<TextView
android:id="@+id/date"
style="@style/message_details_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="32dip"
/>
</TableRow>
<TableRow
android:id="@+id/to_row"
>
<TextView
android:layout_column="1"
android:text="@string/message_view_to_label"
style="@style/message_details_label"
/>
<TextView
android:id="@+id/to"
style="@style/message_details_value"
/>
</TableRow>
<TableRow
android:id="@+id/cc_row"
>
<TextView
android:layout_column="1"
android:text="@string/message_view_cc_label"
style="@style/message_details_label"
/>
<TextView
android:id="@+id/cc"
style="@style/message_details_value"
/>
</TableRow>
<TableRow
android:id="@+id/bcc_row"
>
<TextView
android:layout_column="1"
android:text="@string/message_view_bcc_label"
style="@style/message_details_label"
/>
<TextView
android:id="@+id/bcc"
style="@style/message_details_value"
/>
</TableRow>
</TableLayout>