| <?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. |
| --> |
| |
| <!-- Upper header area for a message view. This contains the message actions |
| (e.g. reply, forward), and sender info --> |
| <!-- Note the bottom padding is to compensate for the drop shadow in the asset --> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/message_header_height" |
| android:background="@drawable/header_convo_view_sender_bg_holo" |
| android:orientation="horizontal" |
| android:gravity="center_vertical" |
| > |
| <QuickContactBadge |
| android:id="@+id/badge" |
| android:layout_width="@dimen/message_header_badge_width" |
| android:layout_height="@dimen/message_header_badge_width" |
| android:scaleType="centerCrop" |
| /> |
| <View |
| android:layout_width="1dip" |
| android:layout_height="match_parent" |
| android:background="@android:color/white" |
| /> |
| <RelativeLayout |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_marginLeft="@dimen/message_header_name_margin" |
| > |
| <TextView |
| android:id="@+id/from_name" |
| style="@style/message_header_sender_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| /> |
| <ImageView |
| android:id="@+id/presence" |
| android:src="@android:drawable/presence_offline" |
| android:layout_below="@+id/from_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginRight="2dip" |
| android:visibility="gone" |
| /> |
| <TextView |
| android:id="@+id/from_address" |
| style="@style/message_header_sender_address" |
| android:layout_below="@+id/from_name" |
| android:layout_toRightOf="@+id/presence" |
| android:layout_alignWithParentIfMissing="true" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="14dip" |
| android:textColor="@color/text_secondary_color_inverse" |
| android:singleLine="true" |
| android:ellipsize="end" |
| /> |
| </RelativeLayout> |
| <include layout="@layout/message_view_header_actions" /> |
| </LinearLayout> |
| |