1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:minWidth="500dip" 22 android:padding="10dip"> 23 24 <ProgressBar android:id="@+id/spinner" 25 style="?android:attr/progressBarStyleLarge" 26 android:layout_gravity="center" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" /> 29 30 <TextView android:id="@+id/loading" 31 android:paddingTop="5dip" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:layout_gravity="center" 35 android:textSize="14sp" 36 android:textColor="#ffffffff" /> 37 38 <SeekBar android:id="@+id/progress" 39 android:background="#000000f0" 40 android:progressDrawable="@drawable/progress_horizontal" 41 android:thumb="@drawable/seek_thumb" 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:paddingLeft="8dip" 45 android:paddingRight="8dip" 46 android:visibility="gone" /> 47 48 <LinearLayout 49 android:id="@+id/titleandbuttons" 50 android:orientation="horizontal" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:visibility="gone" > 54 55 <LinearLayout 56 android:orientation="vertical" 57 android:layout_width="0dip" 58 android:layout_weight="1" 59 android:layout_height="wrap_content" 60 android:layout_marginLeft="8dip"> 61 62 <TextView android:id="@+id/line1" 63 android:paddingTop="5dip" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:ellipsize="end" 67 android:textSize="14sp" 68 android:textColor="#ffffffff" /> 69 70 <TextView android:id="@+id/line2" 71 android:paddingTop="5dip" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:ellipsize="end" 75 android:textSize="14sp" 76 android:textColor="#ffffffff" /> 77 </LinearLayout> 78 79 <LinearLayout 80 android:orientation="horizontal" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content"> 83 84 <ImageButton 85 android:id="@+id/playpause" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_gravity="center_vertical" 89 android:layout_marginLeft="16dip" 90 android:background="@drawable/btn_nowplaying_background_small" 91 android:src="@drawable/btn_playback_ic_play_small" 92 android:onClick="playPauseClicked" 93 /> 94 95 </LinearLayout> 96 </LinearLayout> 97 98</LinearLayout> 99 100