browser_download_item.xml revision 0c90888c75eed12f6e2e14a9044faf50bd4af8ed
1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** assets/res/any/layout/browser_bookmark_item.xml 5** 6** Copyright 2006, The Android Open Source Project 7** 8** Licensed under the Apache License, Version 2.0 (the "License"); 9** you may not use this file except in compliance with the License. 10** You may obtain a copy of the License at 11** 12** http://www.apache.org/licenses/LICENSE-2.0 13** 14** Unless required by applicable law or agreed to in writing, software 15** distributed under the License is distributed on an "AS IS" BASIS, 16** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17** See the License for the specific language governing permissions and 18** limitations under the License. 19*/ 20--> 21 22<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="fill_parent" 24 android:layout_height="wrap_content"> 25 26 <ImageView android:id="@+id/download_icon" 27 android:layout_width="@android:dimen/app_icon_size" 28 android:layout_height="@android:dimen/app_icon_size" 29 android:layout_alignParentTop="true" 30 android:layout_alignParentLeft="true" 31 android:scaleType="fitCenter" 32 /> 33 34 <TextView android:id="@+id/download_title" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:maxLines="1" 38 android:layout_alignParentTop="true" 39 android:layout_toRightOf="@id/download_icon" 40 android:textAppearance="?android:attr/textAppearanceMedium" 41 /> 42 <TextView android:id="@+id/domain" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_toRightOf="@id/download_icon" 46 android:layout_below="@id/download_title" 47 android:maxLines="1" 48 android:textAppearance="?android:attr/textAppearanceSmall" 49 /> 50 51 <TextView android:id="@+id/complete_date" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:maxLines="1" 55 android:textAppearance="?android:attr/textAppearanceSmall" 56 android:layout_below="@id/domain" 57 android:layout_alignParentRight="true" 58 android:visibility="gone" 59 /> 60 61 <TextView android:id="@+id/complete_text" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_below="@id/domain" 65 android:layout_toRightOf="@id/download_icon" 66 android:layout_toLeftOf="@id/complete_date" 67 android:textAppearance="?android:attr/textAppearanceSmall" 68 android:visibility="gone" 69 /> 70 71 <ProgressBar android:id="@+id/download_progress" 72 style="?android:attr/progressBarStyleHorizontal" 73 android:layout_width="fill_parent" 74 android:layout_height="wrap_content" 75 android:layout_below="@id/download_icon" 76 android:layout_alignParentLeft="true" 77 android:layout_alignParentRight="true" 78 android:max="100" 79 /> 80 <TextView android:id="@+id/progress_text" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:maxLines="1" 84 android:textAppearance="?android:attr/textAppearanceSmall" 85 android:layout_centerHorizontal="true" 86 android:layout_below="@id/download_progress" 87 /> 88</RelativeLayout> 89 90