| <?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.MessageAttachmentBar |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="8dip" |
| android:background="@drawable/attachment_bg_holo" |
| android:columnCount="3" |
| android:minHeight="48dip" |
| android:rowCount="3" > |
| |
| <ImageView |
| android:id="@+id/attachment_icon" |
| android:layout_width="48dip" |
| android:layout_column="0" |
| android:layout_gravity="fill_vertical" |
| android:layout_marginRight="8dip" |
| android:layout_row="0" |
| android:layout_rowSpan="3" |
| android:background="@color/attachment_image_background_color" |
| android:scaleType="center" |
| android:src="@drawable/ic_menu_attachment_holo_light" /> |
| |
| <TextView |
| android:id="@+id/attachment_title" |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_column="1" |
| android:layout_gravity="fill_horizontal" |
| android:layout_marginRight="8dip" |
| android:layout_row="0" |
| android:ellipsize="end" |
| android:singleLine="true" |
| android:textSize="14sp" |
| android:textColor="#333333" /> |
| |
| <TextView |
| android:id="@+id/attachment_subtitle" |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_column="1" |
| android:layout_gravity="fill_horizontal" |
| android:layout_marginRight="8dip" |
| android:layout_row="1" |
| android:ellipsize="end" |
| android:singleLine="true" |
| android:textSize="12sp" |
| android:textColor="#aaaaaa" /> |
| |
| <ProgressBar |
| android:id="@+id/attachment_progress" |
| style="?android:attr/progressBarStyleHorizontal" |
| android:layout_height="wrap_content" |
| android:layout_column="1" |
| android:layout_gravity="fill_horizontal" |
| android:layout_marginRight="8dip" |
| android:layout_row="2" |
| android:indeterminate="true" |
| android:visibility="visible" /> |
| |
| <ImageView |
| android:id="@+id/overflow" |
| style="@android:style/Widget.Holo.Light.ActionButton.Overflow" |
| android:layout_width="48dip" |
| android:layout_column="2" |
| android:layout_gravity="fill_vertical" |
| android:layout_row="0" |
| android:layout_rowSpan="3" |
| android:visibility="gone" /> |
| |
| <ImageButton |
| android:id="@+id/cancel_attachment" |
| android:layout_width="48dip" |
| android:layout_column="2" |
| android:layout_gravity="fill_vertical" |
| android:layout_row="0" |
| android:layout_rowSpan="3" |
| android:background="?android:attr/selectableItemBackground" |
| android:clickable="true" |
| android:scaleType="center" |
| android:src="@drawable/ic_cancel_holo_light" |
| android:visibility="gone" /> |
| |
| <View |
| android:id="@+id/attachment_push_state" |
| android:layout_width="0dip" |
| android:layout_height="0dip" |
| android:layout_column="0" |
| android:layout_columnSpan="2" |
| android:layout_gravity="fill" |
| android:layout_row="0" |
| android:layout_rowSpan="3" |
| android:background="?android:attr/selectableItemBackground" |
| android:focusable="true" /> |
| |
| </com.android.mail.browse.MessageAttachmentBar> |