Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 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.MessageAttachmentTile |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/attachment_tile" |
| 21 | android:layout_width="wrap_content" |
| 22 | android:layout_height="wrap_content" |
Yu Ping Hu | 88a48f3 | 2013-01-29 16:16:36 -0800 | [diff] [blame] | 23 | android:focusable="true" |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 24 | android:background="@drawable/attachment_bg_holo"> |
| 25 | |
mindyp | 484e4e3 | 2012-09-10 16:34:23 -0700 | [diff] [blame] | 26 | <include layout="@layout/attachment_preview"/> |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 27 | |
Paul Westbrook | 90528f4 | 2012-10-13 12:21:58 -0700 | [diff] [blame] | 28 | <ProgressBar |
| 29 | android:id="@+id/attachment_progress" |
| 30 | style="?android:attr/progressBarStyleHorizontal" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_alignParentBottom="true" |
| 34 | android:indeterminate="true" |
| 35 | android:visibility="gone" /> |
| 36 | |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 37 | <LinearLayout |
| 38 | android:id="@+id/attachment_tile_text_container" |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="wrap_content" |
Paul Westbrook | 90528f4 | 2012-10-13 12:21:58 -0700 | [diff] [blame] | 41 | android:layout_above="@id/attachment_progress" |
| 42 | android:layout_alignWithParentIfMissing="true" |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 43 | android:orientation="vertical" |
| 44 | android:gravity="center_vertical" |
| 45 | android:paddingLeft="8dip" |
| 46 | android:paddingRight="4dip"> |
| 47 | |
| 48 | <TextView |
| 49 | android:id="@+id/attachment_tile_title" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:textColor="@android:color/black" |
| 53 | android:includeFontPadding="false" |
| 54 | android:textSize="16sp" |
| 55 | android:singleLine="true" |
| 56 | android:fadingEdge="horizontal" |
| 57 | android:fadingEdgeLength="3dip" |
| 58 | android:ellipsize="marquee" /> |
| 59 | |
| 60 | <TextView |
| 61 | android:id="@+id/attachment_tile_subtitle" |
| 62 | android:layout_width="wrap_content" |
| 63 | android:layout_height="wrap_content" |
| 64 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 65 | android:textColor="@color/attachment_tile_subtitle_color" |
| 66 | android:includeFontPadding="false" |
| 67 | android:textSize="12sp" |
| 68 | android:singleLine="true" |
| 69 | android:paddingBottom="4dip" |
| 70 | android:fadingEdge="horizontal" |
| 71 | android:fadingEdgeLength="3dip" |
| 72 | android:ellipsize="marquee" /> |
| 73 | |
| 74 | </LinearLayout> |
| 75 | |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 76 | <View |
| 77 | android:id="@+id/attachment_tile_push_state" |
| 78 | android:layout_width="match_parent" |
| 79 | android:layout_height="match_parent" |
Yu Ping Hu | 88a48f3 | 2013-01-29 16:16:36 -0800 | [diff] [blame] | 80 | android:duplicateParentState="true" |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 81 | android:background="?android:attr/selectableItemBackground" /> |
| 82 | |
| 83 | </com.android.mail.browse.MessageAttachmentTile> |