96 lines
3.2 KiB
XML
96 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2009 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/appwidget_bg">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/album_appwidget"
|
|
android:layout_width="0dip"
|
|
android:layout_weight="3"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center_vertical"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="@drawable/appwidget_button_left"
|
|
android:paddingLeft="18dip"
|
|
android:paddingRight="8dip"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/appwidget_text"
|
|
android:textStyle="bold"
|
|
android:textSize="18sp"
|
|
android:singleLine="true"
|
|
android:fadingEdge="horizontal"
|
|
android:fadingEdgeLength="10dip"
|
|
android:ellipsize="none"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/artist"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/appwidget_text"
|
|
android:textSize="14sp"
|
|
android:singleLine="true"
|
|
android:fadingEdge="horizontal"
|
|
android:fadingEdgeLength="10dip"
|
|
android:ellipsize="none"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="1dip"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/appwidget_divider"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_play"
|
|
android:layout_width="0dip"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_appwidget_music_play"
|
|
android:background="@drawable/appwidget_button_center"
|
|
android:scaleType="center"
|
|
/>
|
|
|
|
<ImageView
|
|
android:layout_width="1dip"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/appwidget_divider"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_next"
|
|
android:layout_width="0dip"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_appwidget_music_next"
|
|
android:background="@drawable/appwidget_button_right"
|
|
android:scaleType="center"
|
|
/>
|
|
|
|
</LinearLayout>
|