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 <!-- Upper header area for a message view. This contains the message actions
     18      (e.g. reply, forward), and sender info -->
     19 <!-- Note the bottom padding is to compensate for the drop shadow in the asset -->
     20 <LinearLayout
     21     xmlns:android="http://schemas.android.com/apk/res/android"
     22     android:layout_width="match_parent"
     23     android:layout_height="@dimen/message_header_height"
     24     android:background="@drawable/header_convo_view_sender_bg_holo"
     25     android:orientation="horizontal"
     26     android:gravity="center_vertical"
     27     >
     28     <QuickContactBadge
     29         android:id="@+id/badge"
     30         android:layout_width="@dimen/message_header_badge_width"
     31         android:layout_height="@dimen/message_header_badge_width"
     32         android:scaleType="centerCrop"
     33         />
     34     <View
     35         android:layout_width="1dip"
     36         android:layout_height="match_parent"
     37         android:background="@android:color/white"
     38         />
     39     <RelativeLayout
     40         android:layout_width="0dip"
     41         android:layout_height="wrap_content"
     42         android:layout_weight="1"
     43         android:layout_marginLeft="@dimen/message_header_name_margin"
     44         >
     45         <TextView
     46             android:id="@+id/from_name"
     47             style="@style/message_header_sender_name"
     48             android:layout_width="wrap_content"
     49             android:layout_height="wrap_content"
     50             />
     51         <ImageView
     52             android:id="@+id/presence"
     53             android:src="@android:drawable/presence_offline"
     54             android:layout_below="@+id/from_name"
     55             android:layout_width="wrap_content"
     56             android:layout_height="wrap_content"
     57             android:layout_marginRight="2dip"
     58             android:visibility="gone"
     59             />
     60         <TextView
     61             android:id="@+id/from_address"
     62             style="@style/message_header_sender_address"
     63             android:layout_below="@+id/from_name"
     64             android:layout_toRightOf="@+id/presence"
     65             android:layout_alignWithParentIfMissing="true"
     66             android:layout_width="wrap_content"
     67             android:layout_height="wrap_content"
     68             android:textSize="14dip"
     69             android:textColor="@color/text_secondary_color_inverse"
     70             android:singleLine="true"
     71             android:ellipsize="end"
     72             />
     73     </RelativeLayout>
     74     <include layout="@layout/message_view_header_actions" />
     75 </LinearLayout>
     76 
     77