Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 ** Copyright 2010, The Android Open Source Project
      5 **
      6 ** Licensed under the Apache License, Version 2.0 (the "License");
      7 ** you may not use this file except in compliance with the License.
      8 ** You may obtain a copy of the License at
      9 **
     10 **     http://www.apache.org/licenses/LICENSE-2.0
     11 **
     12 ** Unless required by applicable law or agreed to in writing, software
     13 ** distributed under the License is distributed on an "AS IS" BASIS,
     14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15 ** See the License for the specific language governing permissions and
     16 ** limitations under the License.
     17 */
     18 -->
     19 
     20 <com.android.providers.downloads.ui.DownloadItem
     21     xmlns:android="http://schemas.android.com/apk/res/android"
     22     android:layout_width="match_parent"
     23     android:layout_height="wrap_content"
     24     android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
     25     android:paddingRight="?android:attr/listPreferredItemPaddingRight"
     26     android:paddingTop="8dip"
     27     android:paddingBottom="8dip"
     28     android:columnCount="4"
     29     android:descendantFocusability="blocksDescendants">
     30 
     31     <!-- Clicks are handled directly by DownloadItem -->
     32     <CheckBox
     33         android:id="@+id/download_checkbox"
     34         android:layout_rowSpan="3"
     35         android:layout_gravity="center_vertical"
     36         android:clickable="false" />
     37 
     38     <ImageView
     39         android:id="@+id/download_icon"
     40         android:layout_width="@android:dimen/app_icon_size"
     41         android:layout_height="@android:dimen/app_icon_size"
     42         android:layout_rowSpan="3"
     43         android:layout_marginRight="8dip"
     44         android:layout_gravity="center_vertical"
     45         android:scaleType="centerInside" />
     46 
     47     <TextView
     48         android:id="@+id/download_title"
     49         android:layout_width="0dip"
     50         android:layout_columnSpan="2"
     51         android:layout_gravity="fill_horizontal"
     52         android:singleLine="true"
     53         android:ellipsize="marquee"
     54         android:textStyle="bold"
     55         android:textAppearance="?android:attr/textAppearance" />
     56 
     57     <TextView
     58         android:id="@+id/domain"
     59         android:layout_width="0dip"
     60         android:layout_columnSpan="2"
     61         android:layout_gravity="fill_horizontal"
     62         android:singleLine="true"
     63         android:ellipsize="marquee"
     64         android:textAppearance="?android:attr/textAppearanceSmall" />
     65 
     66     <TextView
     67         android:id="@+id/size_text"
     68         android:layout_width="0dip"
     69         android:layout_gravity="fill_horizontal"
     70         android:singleLine="true"
     71         android:ellipsize="marquee"
     72         android:textAppearance="?android:attr/textAppearanceSmall" />
     73 
     74     <TextView
     75         android:id="@+id/status_text"
     76         android:layout_marginLeft="8dip"
     77         android:textAppearance="?android:attr/textAppearanceSmall" />
     78 
     79 </com.android.providers.downloads.ui.DownloadItem>
     80