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             <ImageView
     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                 style="@android:style/TextAppearance.StatusBar.EventContent"
     52                 android:singleLine="true"
     53                 android:layout_gravity="center_horizontal"
     54                 />
     55         </LinearLayout>
     56 
     57         <RelativeLayout
     58             android:layout_width="match_parent"
     59             android:layout_height="match_parent"
     60             android:orientation="vertical"
     61             android:focusable="true"
     62             android:clickable="true"
     63             >
     64             <LinearLayout
     65                 android:layout_width="match_parent"
     66                 android:layout_height="wrap_content"
     67                 android:orientation="horizontal"
     68                 android:focusable="true"
     69                 android:clickable="true"
     70                 android:layout_alignParentTop="true"
     71                 android:paddingTop="10dp"
     72                 >
     73                 <TextView android:id="@+id/title"
     74                     android:layout_width="wrap_content"
     75                     android:layout_height="wrap_content"
     76                     style="@android:style/TextAppearance.StatusBar.EventContent.Title"
     77                     android:singleLine="true"
     78                     android:paddingLeft="2dp"
     79                     />
     80                 <TextView android:id="@+id/description"
     81                     android:layout_width="wrap_content"
     82                     android:layout_height="wrap_content"
     83                     style="@android:style/TextAppearance.StatusBar.EventContent"
     84                     android:singleLine="true"
     85                     android:paddingLeft="5dp"
     86                     />
     87             </LinearLayout>
     88             <!-- Only one of progress_bar and paused_text will be visible. -->
     89             <ProgressBar android:id="@+id/progress_bar"
     90                 style="?android:attr/progressBarStyleHorizontal"
     91                 android:layout_width="match_parent"
     92                 android:layout_height="wrap_content"
     93                 android:layout_alignParentBottom="true"
     94                 android:paddingBottom="8dp"
     95                 android:paddingRight="25dp"
     96                 />
     97             <TextView android:id="@+id/paused_text"
     98                 android:layout_width="match_parent"
     99                 android:layout_height="wrap_content"
    100                 android:layout_alignParentBottom="true"
    101                 android:paddingBottom="8dp"
    102                 android:singleLine="true"
    103                 style="@android:style/TextAppearance.StatusBar.EventContent"
    104                 android:paddingLeft="5dp"
    105                 />
    106         </RelativeLayout>
    107     </LinearLayout>
    108 
    109     <ImageView
    110         android:layout_width="match_parent"
    111         android:layout_height="wrap_content"
    112         android:src="@android:drawable/divider_horizontal_bright"
    113         />
    114 
    115 </LinearLayout>
    116 
    117