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:minHeight="?android:attr/listPreferredItemHeight"
     25     android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     26     android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     27     android:paddingTop="8dip"
     28     android:paddingBottom="8dip"
     29     android:columnCount="4"
     30     android:descendantFocusability="blocksDescendants">
     31 
     32     <!-- Clicks are handled directly by DownloadItem -->
     33     <CheckBox
     34         android:id="@+id/download_checkbox"
     35         android:layout_rowSpan="3"
     36         android:layout_gravity="center_vertical"
     37         android:clickable="false" />
     38 
     39     <ImageView
     40         android:id="@+id/download_icon"
     41         android:layout_width="@android:dimen/app_icon_size"
     42         android:layout_height="@android:dimen/app_icon_size"
     43         android:layout_rowSpan="3"
     44         android:layout_marginEnd="8dip"
     45         android:layout_gravity="center_vertical"
     46         android:scaleType="centerInside"
     47         android:contentDescription="@null" />
     48 
     49     <TextView
     50         android:id="@+id/download_title"
     51         android:layout_width="0dip"
     52         android:layout_columnSpan="2"
     53         android:layout_gravity="fill_horizontal"
     54         android:singleLine="true"
     55         android:ellipsize="marquee"
     56         android:textStyle="bold"
     57         android:textAppearance="?android:attr/textAppearance"
     58         android:textAlignment="viewStart" />
     59 
     60     <TextView
     61         android:id="@+id/domain"
     62         android:layout_width="0dip"
     63         android:layout_columnSpan="2"
     64         android:layout_gravity="fill_horizontal"
     65         android:singleLine="true"
     66         android:ellipsize="marquee"
     67         android:textAppearance="?android:attr/textAppearanceSmall"
     68         android:textAlignment="viewStart" />
     69 
     70     <TextView
     71         android:id="@+id/size_text"
     72         android:layout_width="0dip"
     73         android:layout_gravity="fill_horizontal"
     74         android:singleLine="true"
     75         android:ellipsize="marquee"
     76         android:textAppearance="?android:attr/textAppearanceSmall"
     77         android:textAlignment="viewStart" />
     78 
     79     <TextView
     80         android:id="@+id/status_text"
     81         android:layout_marginStart="8dip"
     82         android:textAppearance="?android:attr/textAppearanceSmall"
     83         android:textAlignment="viewStart" />
     84 
     85 </com.android.providers.downloads.ui.DownloadItem>
     86