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 / 18TODO: This is copied from DownloadProvider, and looks similar to Bluetooth's. 19 It might be better to have this in framework. 20--> 21 22<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:orientation="vertical" 26 android:background="@android:drawable/status_bar_item_app_background" 27 > 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:orientation="horizontal" 33 > 34 <LinearLayout 35 android:layout_width="40dp" 36 android:layout_height="match_parent" 37 android:orientation="vertical" 38 android:paddingTop="8dp" 39 android:focusable="true" 40 > 41 <ImageView 42 android:id="@+id/status_icon" 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/status_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 </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 <LinearLayout 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:orientation="horizontal" 66 android:focusable="true" 67 android:layout_alignParentTop="true" 68 android:paddingTop="10dp"> 69 <TextView android:id="@+id/status_description" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:textColor="?android:attr/textColorPrimary" 73 android:singleLine="true" 74 android:textSize="18sp" 75 android:paddingLeft="5dp" /> 76 </LinearLayout> 77 <ProgressBar 78 android:id="@+id/status_progress_bar" 79 style="?android:attr/progressBarStyleHorizontal" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:layout_alignParentBottom="true" 83 android:paddingBottom="8dp" 84 android:paddingRight="25dp" /> 85 </RelativeLayout> 86 </LinearLayout> 87 88 <ImageView 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:src="@android:drawable/divider_horizontal_bright" 92 /> 93</LinearLayout> 94 95