Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2012 Google Inc.
      4      Licensed to The Android Open Source Project.
      5 
      6      Licensed under the Apache License, Version 2.0 (the "License");
      7      you may not use this file except in compliance with the License.
      8      You may obtain a copy of the License at
      9 
     10           http://www.apache.org/licenses/LICENSE-2.0
     11 
     12      Unless required by applicable law or agreed to in writing, software
     13      distributed under the License is distributed on an "AS IS" BASIS,
     14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15      See the License for the specific language governing permissions and
     16      limitations under the License.
     17 -->
     18 <com.android.mail.browse.MessageAttachmentBar xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:layout_marginBottom="12dp"
     22     android:background="@drawable/attachment_bg_holo"
     23     android:minHeight="48dip" >
     24 
     25     <LinearLayout
     26         android:layout_width="match_parent"
     27         android:layout_height="match_parent"
     28         android:orientation="horizontal">
     29 
     30         <ImageView
     31             android:id="@+id/attachment_icon"
     32             android:layout_width="48dip"
     33             android:layout_height="match_parent"
     34             android:background="@color/attachment_image_background_color"
     35             android:scaleType="center"
     36             android:src="@drawable/ic_menu_attachment_holo_light"
     37             style="@style/MessageAttachmentBarMarginEndStyle" />
     38 
     39         <RelativeLayout
     40             android:layout_width="0dip"
     41             android:layout_height="wrap_content"
     42             android:layout_gravity="center_vertical"
     43             android:layout_weight="1" >
     44 
     45             <TextView
     46                 android:id="@+id/attachment_title"
     47                 android:layout_width="match_parent"
     48                 android:layout_height="wrap_content"
     49                 android:ellipsize="end"
     50                 android:singleLine="true"
     51                 android:textAlignment="viewStart"
     52                 android:textColor="#333333"
     53                 android:textSize="14sp"
     54                 style="@style/MessageAttachmentBarMarginEndStyle" />
     55 
     56             <TextView
     57                 android:id="@+id/attachment_subtitle"
     58                 android:layout_width="match_parent"
     59                 android:layout_height="wrap_content"
     60                 android:layout_below="@id/attachment_title"
     61                 android:ellipsize="end"
     62                 android:singleLine="true"
     63                 android:textAlignment="viewStart"
     64                 android:textColor="#aaaaaa"
     65                 android:textSize="12sp"
     66                 style="@style/MessageAttachmentBarMarginEndStyle" />
     67 
     68             <include layout="@layout/conversation_message_attachment_bar_progress_bar"/>
     69         </RelativeLayout>
     70 
     71         <ImageView
     72             android:id="@+id/overflow"
     73             style="@style/OverflowButtonStyle"
     74             android:layout_width="48dip"
     75             android:layout_height="match_parent" />
     76 
     77         <ImageButton
     78             android:id="@+id/cancel_attachment"
     79             android:layout_width="48dip"
     80             android:layout_height="match_parent"
     81             android:background="?android:attr/selectableItemBackground"
     82             android:clickable="true"
     83             android:scaleType="center"
     84             android:src="@drawable/ic_cancel_holo_light"
     85             android:visibility="gone" />
     86     </LinearLayout>
     87 
     88     <View
     89         android:id="@+id/attachment_push_state"
     90         android:layout_width="match_parent"
     91         android:layout_height="match_parent"
     92         android:background="?android:attr/selectableItemBackground"
     93         android:focusable="true" />
     94 
     95 </com.android.mail.browse.MessageAttachmentBar>
     96