Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 ** Copyright 2007, Google Inc.
      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 <com.android.music.CheckableRelativeLayout
     20         xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="64dip"
     23     android:gravity="center_vertical"
     24     android:ignoreGravity="@+id/radio">
     25 
     26     <RadioButton
     27         android:id="@+id/radio"
     28         android:layout_width="wrap_content"
     29         android:layout_height="wrap_content"
     30         android:layout_gravity="center_vertical"
     31         android:layout_alignParentLeft="true"
     32         android:layout_centerVertical="true"
     33         android:layout_marginLeft="4dip"
     34         android:focusable="false"
     35         android:clickable="false" />
     36 
     37     <TextView android:id="@+id/duration"
     38         android:layout_alignParentRight="true"
     39         android:layout_width="wrap_content"
     40         android:layout_height="wrap_content"
     41         android:layout_alignBaseline="@+id/line1"
     42         android:textAppearance="?android:attr/textAppearanceSmall"
     43         android:textColor="#ffe0d090"
     44         android:paddingLeft="4dip"
     45         android:paddingRight="5dip"
     46         android:singleLine="true" />
     47 
     48     <TextView android:id="@+id/line1"
     49         android:textAppearance="?android:attr/textAppearanceMedium"
     50         android:layout_width="wrap_content"
     51         android:paddingLeft="4dip"
     52         android:layout_height="wrap_content"
     53         android:layout_alignParentTop="true"
     54         android:layout_alignWithParentIfMissing="true"
     55         android:layout_toRightOf="@id/radio"
     56         android:layout_toLeftOf="@id/duration"
     57         android:ellipsize="end"
     58         android:singleLine="true" />
     59 
     60     <TextView android:id="@+id/line2" android:visibility="visible"
     61         android:maxLines="2"
     62         android:ellipsize="end"
     63         android:paddingLeft="4dip"
     64         android:textAppearance="?android:attr/textAppearanceSmall"
     65         android:layout_below="@id/line1"
     66         android:layout_alignWithParentIfMissing="true"
     67         android:layout_toRightOf="@id/radio"
     68         android:layout_toLeftOf="@id/duration"
     69         android:layout_width="wrap_content"
     70         android:layout_height="wrap_content" />
     71 
     72     <ImageView android:id="@+id/play_indicator"
     73         android:layout_alignParentRight="true"
     74         android:layout_alignBottom="@id/line2"
     75         android:layout_width="wrap_content"
     76         android:layout_height="wrap_content"
     77         android:layout_marginRight="6dip" />
     78         
     79 </com.android.music.CheckableRelativeLayout>
     80