replicant-packages_apps_Email/res/layout-sw600dp/message_compose_attachment.xml

94 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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.
-->
<!-- tablet -->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="49dip"
android:layout_marginBottom="-1dip"
>
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_marginRight="@dimen/message_compose_header_button_area_width"
android:layout_alignParentBottom="true"
style="@style/message_compose_horizontal_divider"
/>
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="48dip"
android:layout_marginRight="16dip"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:src="@drawable/ic_attachment_holo_light"
android:gravity="center"
/>
<!--
Use FrameLayout to left-align the button image, within the width of
@dimen/message_compose_header_button_area_width
-->
<FrameLayout
android:id="@+id/attachment_delete_frame"
android:layout_width="@dimen/message_compose_header_button_area_width"
android:layout_height="48dip"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_gravity="center_vertical|left"
>
<ImageButton
android:id="@+id/attachment_delete"
android:layout_width="wrap_content"
android:layout_height="match_parent"
style="@android:style/Widget.Holo.Button.Borderless"
android:src="@drawable/ic_remove_attachment_holo_light"
android:gravity="left|center_vertical"
android:paddingTop="0dip"
android:paddingBottom="0dip"
android:paddingLeft="16dip"
android:paddingRight="0dip"
/>
</FrameLayout>
<TextView
android:id="@+id/attachment_size"
android:layout_width="wrap_content"
android:layout_height="48dip"
android:layout_marginLeft="8dip"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@id/attachment_delete_frame"
android:textSize="14dip"
android:textColor="@color/text_secondary_color"
android:gravity="center_vertical|right"
android:singleLine="true"
/>
<TextView
android:id="@+id/attachment_name"
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_alignParentTop="true"
android:layout_toRightOf="@id/icon"
android:layout_toLeftOf="@id/attachment_size"
android:textSize="18dip"
android:textColor="@color/text_secondary_color"
android:gravity="center_vertical|left"
android:singleLine="true"
android:ellipsize="start"
/>
<!-- TODO Show file size -->
</RelativeLayout>