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:paddingRight="?android:attr/scrollbarSize"
     25     android:descendantFocusability="blocksDescendants"
     26     android:gravity="center_vertical">
     27     
     28 
     29     <!-- Clicks are handled directly by DownloadItem -->
     30     <CheckBox android:id="@+id/download_checkbox"
     31               android:layout_width="wrap_content"
     32               android:layout_height="wrap_content"
     33               android:layout_alignParentLeft="true"
     34               android:paddingLeft="8dip"
     35               android:scaleType="fitCenter"
     36               android:layout_centerVertical="true"
     37               android:clickable="false"/>
     38 
     39     <ImageView 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:paddingLeft="8dip"
     43                android:layout_toRightOf="@id/download_checkbox"
     44                android:layout_centerVertical="true"
     45                android:scaleType="fitCenter" />
     46 
     47     <TextView android:id="@+id/download_title"
     48               android:layout_width="wrap_content"
     49               android:layout_height="wrap_content"
     50               android:layout_alignParentTop="true"
     51               android:layout_toRightOf="@id/download_icon"
     52               android:maxLines="1"
     53               android:paddingLeft="8dip"
     54               android:textStyle="bold"
     55               android:textAppearance="?android:attr/textAppearanceSmall" />
     56     <TextView android:id="@+id/domain"
     57               android:layout_width="wrap_content"
     58               android:layout_height="wrap_content"
     59               android:layout_below="@id/download_title"
     60               android:layout_toRightOf="@id/download_icon"
     61               android:maxLines="1"
     62               android:paddingLeft="8dip"
     63               android:textAppearance="?android:attr/textAppearanceSmall" />
     64 
     65     <TextView android:id="@+id/last_modified_date"
     66               android:layout_width="wrap_content"
     67               android:layout_height="wrap_content"
     68               android:layout_below="@id/domain"
     69               android:layout_alignParentRight="true"
     70               android:maxLines="1"
     71               android:textAppearance="?android:attr/textAppearanceSmall" />
     72 
     73     <TextView android:id="@+id/status_text"
     74               android:layout_width="wrap_content"
     75               android:layout_height="wrap_content"
     76               android:layout_below="@id/domain"
     77               android:layout_toRightOf="@id/download_icon"
     78               android:paddingLeft="8dip"
     79               android:textAppearance="?android:attr/textAppearanceSmall" />
     80     <TextView android:id="@+id/size_text"
     81               android:layout_width="wrap_content"
     82               android:layout_height="wrap_content"
     83               android:layout_below="@id/domain"
     84               android:layout_toRightOf="@id/status_text"
     85               android:maxLines="1"
     86               android:textAppearance="?android:attr/textAppearanceSmall"
     87               android:paddingLeft="15dp"/>
     88 </com.android.providers.downloads.ui.DownloadItem>
     89 
     90