121 lines
4.5 KiB
XML
121 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/widget_root"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="@drawable/appwidget_bg"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/appwidget_coverart"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_weight="1"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:paddingBottom="6dip"
|
|
android:paddingTop="6dip"
|
|
android:scaleType="fitCenter"
|
|
app:srcCompat="@drawable/appwidget_art_default" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/appwidget_top"
|
|
style="@style/NotificationButton"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="4dip"
|
|
android:paddingTop="4dip">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:ellipsize="marquee"
|
|
android:fadingEdge="horizontal"
|
|
android:fadingEdgeLength="20dip"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:gravity="center"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:minHeight="16sp"
|
|
android:paddingLeft="5dip"
|
|
android:paddingRight="5dip"
|
|
android:scrollHorizontally="true"
|
|
android:singleLine="true"
|
|
android:text="@string/widget.title"
|
|
android:textColor="@color/appwidget_text"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold">
|
|
|
|
<requestFocus
|
|
android:duplicateParentState="true"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true" />
|
|
</TextView>
|
|
|
|
<TextView
|
|
android:id="@+id/artist"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:ellipsize="marquee"
|
|
android:fadingEdge="horizontal"
|
|
android:fadingEdgeLength="10dip"
|
|
android:gravity="center"
|
|
android:minHeight="12sp"
|
|
android:paddingBottom="2dip"
|
|
android:paddingLeft="5dip"
|
|
android:singleLine="true"
|
|
android:text="@string/widget.artist"
|
|
android:textColor="@color/appwidget_text"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:gravity="bottom"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="4dip">
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_previous"
|
|
style="@style/NotificationButton"
|
|
android:layout_width="0dip"
|
|
android:layout_height="56dip"
|
|
android:layout_weight="1"
|
|
app:srcCompat="@drawable/media_backward_dark" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_play"
|
|
style="@style/NotificationButton"
|
|
android:layout_width="0dip"
|
|
android:layout_height="56dip"
|
|
android:layout_weight="1"
|
|
app:srcCompat="@drawable/media_start_dark" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_next"
|
|
style="@style/NotificationButton"
|
|
android:layout_width="0dip"
|
|
android:layout_height="56dip"
|
|
android:layout_weight="1"
|
|
app:srcCompat="@drawable/media_forward_dark" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|