| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2012 Google Inc. |
| Licensed to The Android Open Source Project. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <com.android.mail.browse.MessageAttachmentTile |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/attachment_tile" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:focusable="true" |
| android:background="@drawable/attachment_bg_holo"> |
| |
| <include layout="@layout/attachment_preview"/> |
| |
| <ProgressBar |
| android:id="@+id/attachment_progress" |
| style="?android:attr/progressBarStyleHorizontal" |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:layout_alignParentBottom="true" |
| android:indeterminate="true" |
| android:visibility="gone" /> |
| |
| <LinearLayout |
| android:id="@+id/attachment_tile_text_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_above="@id/attachment_progress" |
| android:layout_alignWithParentIfMissing="true" |
| android:orientation="vertical" |
| android:gravity="center_vertical" |
| android:paddingLeft="8dip" |
| android:paddingRight="4dip"> |
| |
| <TextView |
| android:id="@+id/attachment_tile_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textColor="@android:color/black" |
| android:includeFontPadding="false" |
| android:textSize="16sp" |
| android:singleLine="true" |
| android:fadingEdge="horizontal" |
| android:fadingEdgeLength="3dip" |
| android:ellipsize="marquee" /> |
| |
| <TextView |
| android:id="@+id/attachment_tile_subtitle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| android:textColor="@color/attachment_tile_subtitle_color" |
| android:includeFontPadding="false" |
| android:textSize="12sp" |
| android:singleLine="true" |
| android:paddingBottom="4dip" |
| android:fadingEdge="horizontal" |
| android:fadingEdgeLength="3dip" |
| android:ellipsize="marquee" /> |
| |
| </LinearLayout> |
| |
| <View |
| android:id="@+id/attachment_tile_push_state" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:duplicateParentState="true" |
| android:background="?android:attr/selectableItemBackground" /> |
| |
| </com.android.mail.browse.MessageAttachmentTile> |