132 lines
4.7 KiB
XML
132 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2012 Ferenc Nagy <nferenc@nferenc.com>
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/widget_bg"
|
|
android:baselineAligned="false"
|
|
android:orientation="horizontal" >
|
|
<FrameLayout
|
|
android:id="@+id/frameLayout1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:padding="5dip" >
|
|
<ImageView
|
|
android:id="@+id/vinyl"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="left"
|
|
android:adjustViewBounds="true"
|
|
android:src="@drawable/vinyl"
|
|
android:contentDescription="@string/cover_art"
|
|
android:scaleType="fitCenter" />
|
|
<ImageView
|
|
android:id="@+id/cover"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="left"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/cover_art"
|
|
android:scaleType="fitCenter" />
|
|
</FrameLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="fill_parent"
|
|
android:orientation="vertical"
|
|
android:baselineAligned="false" >
|
|
<LinearLayout
|
|
android:id="@+id/text_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="8dip"
|
|
android:paddingRight="8dip" >
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="none"
|
|
android:fadingEdge="horizontal"
|
|
android:fadingEdgeLength="10dip"
|
|
android:singleLine="true"
|
|
android:textColor="#111"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:includeFontPadding="false"
|
|
android:visibility="gone" />
|
|
<TextView
|
|
android:id="@+id/artist"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="none"
|
|
android:fadingEdge="horizontal"
|
|
android:fadingEdgeLength="10dip"
|
|
android:singleLine="true"
|
|
android:text="@string/app_name"
|
|
android:textColor="#111"
|
|
android:includeFontPadding="false"
|
|
android:textSize="10sp" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="bottom" >
|
|
<ImageButton
|
|
android:id="@+id/previous"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/selectable_item_bg"
|
|
android:contentDescription="@string/previous_song"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/widget_previous"
|
|
android:padding="5dip" />
|
|
<ImageButton
|
|
android:id="@+id/play_pause"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="true"
|
|
android:background="@drawable/selectable_item_bg"
|
|
android:contentDescription="@string/play_pause"
|
|
android:scaleType="centerInside"
|
|
android:src="@drawable/widget_play"
|
|
android:padding="5dip" />
|
|
<ImageButton
|
|
android:id="@+id/next"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="true"
|
|
android:background="@drawable/selectable_item_bg"
|
|
android:contentDescription="@string/next_song"
|
|
android:scaleType="centerInside"
|
|
android:src="@drawable/widget_next"
|
|
android:padding="5dip" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|