Home | History | Annotate | Download | only in layout-finger
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 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:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:orientation="horizontal"
     21     android:background="@drawable/appwidget_bg">
     22 
     23    <LinearLayout
     24         android:id="@+id/album_appwidget"
     25         android:layout_width="0dip"
     26         android:layout_weight="3"
     27         android:layout_height="match_parent"
     28         android:orientation="vertical"
     29         android:gravity="center_vertical"
     30         android:clickable="true"
     31         android:focusable="true"
     32 	    android:background="@drawable/appwidget_button_left"
     33         android:paddingLeft="18dip"
     34         android:paddingRight="8dip"
     35         >
     36 
     37         <TextView
     38             android:id="@+id/title"
     39             android:layout_width="match_parent"
     40             android:layout_height="wrap_content"
     41             android:textColor="@color/appwidget_text"
     42             android:textStyle="bold"
     43             android:textSize="18sp"
     44             android:singleLine="true"
     45             android:fadingEdge="horizontal"
     46             android:fadingEdgeLength="10dip"
     47             android:ellipsize="none"
     48             />
     49 
     50         <TextView
     51             android:id="@+id/artist"
     52             android:layout_width="match_parent"
     53             android:layout_height="wrap_content"
     54             android:textColor="@color/appwidget_text"
     55             android:textSize="14sp"
     56             android:singleLine="true"
     57             android:fadingEdge="horizontal"
     58             android:fadingEdgeLength="10dip"
     59             android:ellipsize="none"
     60             />
     61     </LinearLayout>
     62     
     63  	<ImageView
     64         android:layout_width="1dip"
     65         android:layout_height="match_parent"
     66         android:background="@drawable/appwidget_divider"
     67         />
     68         
     69     <ImageButton
     70         android:id="@+id/control_play"
     71         android:layout_width="0dip"
     72         android:layout_weight="1"
     73         android:layout_height="match_parent"
     74         android:src="@drawable/ic_appwidget_music_play"
     75         android:background="@drawable/appwidget_button_center"
     76         android:scaleType="center"
     77         />
     78 
     79  	<ImageView
     80         android:layout_width="1dip"
     81         android:layout_height="match_parent"
     82         android:background="@drawable/appwidget_divider"
     83         />
     84         
     85     <ImageButton
     86         android:id="@+id/control_next"
     87         android:layout_width="0dip"
     88         android:layout_weight="1"
     89         android:layout_height="match_parent"
     90         android:src="@drawable/ic_appwidget_music_next"
     91         android:background="@drawable/appwidget_button_right"
     92         android:scaleType="center"
     93         />
     94 
     95 </LinearLayout>
     96