Andrew Sapperstein | 237129d | 2012-06-15 11:46:30 -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.compose.ComposeAttachmentTile |
| 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" |
mindyp | 4088243 | 2012-09-06 11:07:40 -0700 | [diff] [blame] | 23 | android:background="@drawable/attachment_bg_holo" |
| 24 | android:focusable="true" |
| 25 | android:focusableInTouchMode="true"> |
Andrew Sapperstein | 237129d | 2012-06-15 11:46:30 -0700 | [diff] [blame] | 26 | |
mindyp | 484e4e3 | 2012-09-10 16:34:23 -0700 | [diff] [blame] | 27 | <include layout="@layout/attachment_preview"/> |
Andrew Sapperstein | 237129d | 2012-06-15 11:46:30 -0700 | [diff] [blame] | 28 | |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 29 | <LinearLayout |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:background="@color/attachment_tile_shadow_box_color" |
| 33 | android:layout_alignParentBottom="true" |
| 34 | android:gravity="center_vertical" |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 35 | style="@style/AttachmentTextContainer" > |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 36 | |
| 37 | <LinearLayout |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 38 | android:layout_width="0dip" |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 39 | android:layout_height="wrap_content" |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 40 | android:layout_weight="1" |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 41 | android:orientation="vertical" |
| 42 | android:gravity="center_vertical" |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 43 | android:layout_gravity="center_vertical" |
| 44 | style="@style/ComposeAttachmentTileTextEndStyle"> |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 45 | |
| 46 | <TextView |
| 47 | android:id="@+id/attachment_tile_title" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:textColor="@android:color/white" |
| 51 | android:includeFontPadding="false" |
| 52 | android:textSize="16sp" |
| 53 | android:singleLine="true" |
| 54 | android:fadingEdge="horizontal" |
| 55 | android:fadingEdgeLength="3dip" |
| 56 | android:ellipsize="marquee" /> |
| 57 | |
| 58 | <TextView |
| 59 | android:id="@+id/attachment_tile_subtitle" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 63 | android:textColor="@android:color/white" |
| 64 | android:includeFontPadding="false" |
| 65 | android:textSize="12sp" |
| 66 | android:singleLine="true" |
| 67 | android:fadingEdge="horizontal" |
| 68 | android:fadingEdgeLength="3dip" |
| 69 | android:ellipsize="marquee" /> |
| 70 | |
| 71 | </LinearLayout> |
| 72 | |
| 73 | <ImageButton |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 74 | android:id="@+id/attachment_tile_close_button" |
Jin Cao | 0c998d4 | 2014-08-13 16:46:39 -0700 | [diff] [blame] | 75 | android:src="@drawable/ic_cancel_wht" |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 76 | android:layout_width="44dip" |
| 77 | android:layout_height="44dip" |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 78 | android:layout_gravity="center_vertical|end|right" |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 79 | android:gravity="center" |
| 80 | android:focusable="true" |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 81 | android:background="?android:attr/selectableItemBackground" /> |
Andrew Sapperstein | afff6d7 | 2012-06-25 18:55:00 -0700 | [diff] [blame] | 82 | |
Andrew Sapperstein | db65689 | 2014-01-24 17:13:30 -0800 | [diff] [blame] | 83 | </LinearLayout> |
Andrew Sapperstein | 237129d | 2012-06-15 11:46:30 -0700 | [diff] [blame] | 84 | |
| 85 | </com.android.mail.compose.ComposeAttachmentTile> |