| <?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.MessageHeaderAttachment xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="8dp" |
| android:orientation="vertical" |
| android:divider="?android:attr/dividerHorizontal" |
| android:showDividers="middle" |
| android:background="@drawable/attachment_bg_holo"> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="48dp"> |
| |
| <ImageView |
| android:id="@+id/attachment_icon" |
| android:layout_width="48dp" |
| android:layout_height="match_parent" |
| android:scaleType="fitCenter" |
| android:background="#e5e5e5" /> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_toRightOf="@id/attachment_icon" |
| android:gravity="center_vertical" |
| android:layout_marginLeft="16dp" |
| android:layout_marginRight="16dp"> |
| |
| <TextView |
| android:id="@+id/attachment_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:singleLine="true" /> |
| |
| <TextView |
| android:id="@+id/attachment_subtitle" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/attachment_title" |
| android:singleLine="true" /> |
| |
| <ProgressBar |
| android:id="@+id/attachment_progress" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/attachment_title" |
| style="?android:attr/progressBarStyleHorizontal" |
| android:indeterminate="false" |
| android:visibility="gone" /> |
| |
| </RelativeLayout> |
| |
| </RelativeLayout> |
| |
| <LinearLayout |
| android:id="@+id/attachment_buttons" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:divider="?android:attr/dividerVertical" |
| android:showDividers="middle" |
| android:dividerPadding="8dp" |
| android:orientation="horizontal"> |
| <include layout="@layout/conversation_message_attachment_buttons" /> |
| </LinearLayout> |
| |
| </com.android.mail.browse.MessageHeaderAttachment> |