• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<!-- The expandable list of recipient addressese and date information at
18     the top of a message view -->
19
20<merge xmlns:android="http://schemas.android.com/apk/res/android">
21
22    <!-- Collapsed version -->
23    <LinearLayout
24        xmlns:android="http://schemas.android.com/apk/res/android"
25        android:id="@+id/sub_header_contents_collapsed"
26        android:layout_width="match_parent"
27        android:layout_height="48dip"
28        android:gravity="center_vertical"
29        >
30        <!-- To, Cc, Bcc addresses -->
31        <TextView
32            android:id="@+id/addresses"
33            android:layout_width="0dip"
34            android:layout_height="wrap_content"
35            android:layout_weight="1"
36            android:layout_marginLeft="8dip"
37            android:singleLine="true"
38            android:ellipsize="end"
39            style="@style/message_view_text"
40            />
41        <TextView
42            android:id="@+id/datetime"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:layout_marginLeft="16dip"
46            android:singleLine="true"
47            style="@style/message_view_text"
48            />
49        <!--  Set proper background to reflect selected state -->
50        <ImageView
51            android:id="@+id/show_details"
52            android:src="@drawable/expander_open_holo_light"
53            android:layout_width="wrap_content"
54            android:layout_height="48dip"
55            android:layout_marginLeft="4dip"
56            android:scaleType="center"
57            android:background="?android:attr/selectableItemBackground"
58            />
59    </LinearLayout>
60
61    <!-- Expanded version -->
62    <FrameLayout
63        android:id="@+id/sub_header_contents_expanded"
64        android:layout_width="match_parent"
65        android:layout_height="wrap_content"
66        android:visibility="gone"
67        >
68
69        <include layout="@layout/message_view_details" />
70
71        <!-- Overlay the collapse details icon.
72             The height here needs to match the height of the collapsed subheader -->
73        <ImageView
74            android:id="@+id/show_details"
75            android:src="@drawable/expander_close_holo_light"
76            android:layout_width="wrap_content"
77            android:layout_height="48dip"
78            android:layout_marginLeft="4dip"
79            android:scaleType="center"
80            android:layout_gravity="right"
81            />
82    </FrameLayout>
83
84</merge>
85
86