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:id="@+id/nowplaying" 22 android:layout_width="match_parent" 23 android:layout_height="64dip" 24 android:focusable="true" 25 android:visibility="gone" 26 android:background="@drawable/music_bottom_playback_bg" 27 android:orientation="vertical" 28 android:paddingTop="3dip" 29 android:paddingBottom="2dip"> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:orientation="horizontal"> 35 36 <LinearLayout 37 android:layout_width="0dip" 38 android:layout_weight="1" 39 android:layout_height="wrap_content" 40 android:layout_gravity="center_vertical" 41 android:orientation="vertical"> 42 43 <TextView 44 android:id="@+id/title" 45 android:textAppearance="?android:attr/textAppearanceMedium" 46 android:singleLine="true" 47 android:ellipsize="end" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 /> 51 <TextView 52 android:id="@+id/artist" 53 android:textAppearance="?android:attr/textAppearanceSmall" 54 android:singleLine="true" 55 android:ellipsize="end" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 /> 59 </LinearLayout> 60 61 <ImageView android:id="@+id/icon" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_gravity="center_vertical" 65 android:layout_marginLeft="16dip" 66 android:background="@drawable/indicator_ic_mp_playing_large" 67 /> 68 69 </LinearLayout> 70 </LinearLayout> 71 72