1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** Copyright 2007, 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 <merge xmlns:android="http://schemas.android.com/apk/res/android"> 20 21 <!-- icon is used for albumart, the grabber in edit playlist mode, and the playlist icon in the list of playlists --> 22 <ImageView android:id="@+id/icon" 23 android:layout_alignParentLeft="true" 24 android:layout_alignParentTop="true" 25 android:layout_alignParentBottom="true" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content"/> 28 29 <TextView android:id="@+id/duration" 30 android:textSize="12sp" 31 android:textColor="?android:attr/textColorTertiary" 32 android:textStyle="bold" 33 android:paddingLeft="4dip" 34 android:paddingRight="11dip" 35 android:layout_alignParentRight="true" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_alignBaseline="@+id/line1" 39 android:singleLine="true" /> 40 41 <!-- The height is set to half the height of the parent, which is 64 dip --> 42 <TextView android:id="@+id/line1" 43 android:textAppearance="?android:attr/textAppearanceMedium" 44 android:layout_width="wrap_content" 45 android:paddingLeft="9dip" 46 android:layout_height="wrap_content" 47 android:layout_alignWithParentIfMissing="true" 48 android:layout_toRightOf="@id/icon" 49 android:layout_toLeftOf="@id/duration" 50 android:ellipsize="marquee" 51 android:singleLine="true" /> 52 53 <!-- The height is set to half the height of the parent, which is 64 dip --> 54 <TextView android:id="@+id/line2" android:visibility="visible" 55 android:textAppearance="?android:attr/textAppearanceSmall" 56 android:singleLine="true" 57 android:ellipsize="end" 58 android:paddingLeft="9dip" 59 android:scrollHorizontally="true" 60 android:layout_below="@id/line1" 61 android:layout_alignWithParentIfMissing="true" 62 android:layout_toRightOf="@id/icon" 63 android:layout_toLeftOf="@id/duration" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" /> 66 67 <ImageView android:id="@+id/play_indicator" 68 android:layout_alignParentRight="true" 69 android:layout_below="@id/duration" 70 android:layout_marginTop="10dip" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginRight="12dip" /> 74 75 </merge> 76