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="8dip" 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:layout_marginRight="8dip" 35 android:background="@color/attachment_image_background_color" 36 android:scaleType="center" 37 android:src="@drawable/ic_menu_attachment_holo_light" /> 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:layout_marginRight="8dip" 50 android:ellipsize="end" 51 android:singleLine="true" 52 android:textColor="#333333" 53 android:textSize="14sp" /> 54 55 <TextView 56 android:id="@+id/attachment_subtitle" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_below="@id/attachment_title" 60 android:layout_marginRight="8dip" 61 android:ellipsize="end" 62 android:singleLine="true" 63 android:textColor="#aaaaaa" 64 android:textSize="12sp" /> 65 66 <ProgressBar 67 android:id="@+id/attachment_progress" 68 style="?android:attr/progressBarStyleHorizontal" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:layout_below="@id/attachment_title" 72 android:layout_marginRight="8dip" 73 android:indeterminate="true" 74 android:visibility="invisible" /> 75 </RelativeLayout> 76 77 <ImageView 78 android:id="@+id/overflow" 79 style="@android:style/Widget.Holo.Light.ActionButton.Overflow" 80 android:layout_width="48dip" 81 android:layout_height="match_parent" /> 82 83 <ImageButton 84 android:id="@+id/cancel_attachment" 85 android:layout_width="48dip" 86 android:layout_height="match_parent" 87 android:background="?android:attr/selectableItemBackground" 88 android:clickable="true" 89 android:scaleType="center" 90 android:src="@drawable/ic_cancel_holo_light" 91 android:visibility="gone" /> 92 </LinearLayout> 93 94 <View 95 android:id="@+id/attachment_push_state" 96 android:layout_width="match_parent" 97 android:layout_height="match_parent" 98 android:background="?android:attr/selectableItemBackground" 99 android:focusable="true" /> 100 101 </com.android.mail.browse.MessageAttachmentBar>