Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 ** Copyright 2008, 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:orientation="vertical"
     24     android:background="@android:drawable/status_bar_item_app_background"
     25     >
     26 
     27     <LinearLayout
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         android:orientation="horizontal"
     31         >
     32         
     33         <LinearLayout
     34             android:layout_width="40dp"
     35             android:layout_height="match_parent"
     36             android:orientation="vertical"
     37             android:paddingTop="8dp"
     38             android:focusable="true"
     39             android:clickable="true"
     40             >
     41             <com.android.server.status.AnimatedImageView 
     42                 android:id="@+id/appIcon"
     43                 android:layout_width="wrap_content"
     44                 android:layout_height="wrap_content"
     45                 android:layout_gravity="center"
     46                 android:src="@android:drawable/sym_def_app_icon"
     47                 />
     48             <TextView android:id="@+id/progress_text" 
     49                 android:layout_width="wrap_content" 
     50                 android:layout_height="wrap_content"
     51                 android:textColor="#ff000000"
     52                 android:singleLine="true"
     53                 android:textSize="14sp"
     54                 android:layout_gravity="center_horizontal"
     55                 />
     56         </LinearLayout>
     57 
     58         <RelativeLayout
     59             android:layout_width="match_parent"
     60             android:layout_height="match_parent"
     61             android:orientation="vertical"
     62             android:focusable="true"
     63             android:clickable="true"
     64             >
     65             <LinearLayout
     66                 android:layout_width="match_parent"
     67                 android:layout_height="wrap_content"
     68                 android:orientation="horizontal"
     69                 android:focusable="true"
     70                 android:clickable="true"
     71                 android:layout_alignParentTop="true"
     72                 android:paddingTop="10dp"
     73                 >
     74                 <TextView android:id="@+id/title"
     75                     android:layout_width="wrap_content"
     76                     android:layout_height="wrap_content"
     77                     android:singleLine="true"
     78                     android:textSize="18sp"
     79                     android:textColor="#ff000000"
     80                     android:paddingLeft="2dp"
     81                     />
     82                 <TextView android:id="@+id/description"
     83                     android:layout_width="wrap_content"
     84                     android:layout_height="wrap_content"
     85                     android:textColor="#ff000000"
     86                     android:singleLine="true"
     87                     android:textSize="14sp"
     88                     android:paddingLeft="5dp"
     89                     />
     90             </LinearLayout>
     91             <ProgressBar android:id="@+id/progress_bar"
     92                 style="?android:attr/progressBarStyleHorizontal"
     93                 android:layout_width="match_parent" 
     94                 android:layout_height="wrap_content"
     95                 android:layout_alignParentBottom="true"
     96                 android:paddingBottom="8dp"
     97                 android:paddingRight="25dp"
     98                 />
     99         </RelativeLayout>
    100     </LinearLayout>
    101         
    102     <com.android.server.status.AnimatedImageView 
    103         android:layout_width="match_parent"
    104         android:layout_height="wrap_content"
    105         android:src="@android:drawable/divider_horizontal_bright"
    106         />
    107 
    108 </LinearLayout>
    109 
    110