2025-09-16 18:00:51 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2025-09-20 21:13:23 +02:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2025-09-16 18:00:51 +02:00
|
|
|
android:id="@+id/root"
|
|
|
|
|
android:layout_width="match_parent"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:minHeight="200dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="16dp"
|
2025-09-16 18:00:51 +02:00
|
|
|
android:background="@drawable/widget_bg">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2025-09-20 21:13:23 +02:00
|
|
|
android:id="@+id/header"
|
2025-09-16 18:00:51 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:baselineAligned="false">
|
2025-09-16 18:00:51 +02:00
|
|
|
|
2025-09-20 21:13:23 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/album_art"
|
|
|
|
|
android:layout_width="150dp"
|
|
|
|
|
android:layout_height="150dp"
|
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
|
android:contentDescription="@string/widget_content_desc_album_art" />
|
2025-09-18 13:57:07 +09:30
|
|
|
|
|
|
|
|
<LinearLayout
|
2025-09-20 21:13:23 +02:00
|
|
|
android:id="@+id/text_container"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/title"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textColor="@color/widget_title"
|
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
|
android:freezesText="true" />
|
2025-09-18 13:57:07 +09:30
|
|
|
|
|
|
|
|
<TextView
|
2025-09-20 21:13:23 +02:00
|
|
|
android:id="@+id/subtitle"
|
|
|
|
|
android:layout_width="match_parent"
|
2025-09-18 13:57:07 +09:30
|
|
|
android:layout_height="wrap_content"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
android:textSize="14sp"
|
2025-09-18 13:57:07 +09:30
|
|
|
android:textColor="@color/widget_subtitle"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:includeFontPadding="false"
|
|
|
|
|
android:freezesText="true" />
|
2025-09-18 13:57:07 +09:30
|
|
|
|
|
|
|
|
<TextView
|
2025-09-20 21:13:23 +02:00
|
|
|
android:id="@+id/album"
|
|
|
|
|
android:layout_width="match_parent"
|
2025-09-18 13:57:07 +09:30
|
|
|
android:layout_height="wrap_content"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
android:textSize="13sp"
|
2025-09-18 13:57:07 +09:30
|
|
|
android:textColor="@color/widget_subtitle"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:includeFontPadding="false"
|
|
|
|
|
android:freezesText="true"
|
|
|
|
|
android:visibility="invisible" />
|
2025-09-18 13:57:07 +09:30
|
|
|
</LinearLayout>
|
2025-09-16 18:00:51 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2025-09-20 21:13:23 +02:00
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/progress"
|
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="6dp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:indeterminate="false"
|
|
|
|
|
android:max="1000"
|
|
|
|
|
android:progress="0"
|
|
|
|
|
android:progressBackgroundTint="@color/widget_subtitle"
|
|
|
|
|
android:progressTint="@color/widget_icon_tint" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/timing"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/time_elapsed"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="@string/widget_time_elapsed_placeholder"
|
|
|
|
|
android:textColor="@color/widget_subtitle"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/time_total"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:gravity="end"
|
|
|
|
|
android:text="@string/widget_time_duration_placeholder"
|
|
|
|
|
android:textColor="@color/widget_subtitle"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2025-09-16 18:00:51 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/controls"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:layout_marginBottom="4dp"
|
2025-09-16 18:00:51 +02:00
|
|
|
android:gravity="center"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:orientation="horizontal">
|
2025-09-16 18:00:51 +02:00
|
|
|
|
2025-09-20 21:13:23 +02:00
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_prev"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="52dp"
|
|
|
|
|
android:layout_weight="1"
|
2025-09-16 18:00:51 +02:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:contentDescription="@string/widget_content_desc_prev"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:src="@drawable/ic_skip_previous"
|
|
|
|
|
android:tint="@color/widget_icon_tint" />
|
2025-09-16 18:00:51 +02:00
|
|
|
|
2025-09-20 21:13:23 +02:00
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_play_pause"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="56dp"
|
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
|
android:layout_weight="1"
|
2025-09-16 18:00:51 +02:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:contentDescription="@string/widget_content_desc_play_pause"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:src="@drawable/ic_play"
|
|
|
|
|
android:tint="@color/widget_icon_tint" />
|
2025-09-16 18:00:51 +02:00
|
|
|
|
2025-09-20 21:13:23 +02:00
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_next"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="52dp"
|
|
|
|
|
android:layout_weight="1"
|
2025-09-16 18:00:51 +02:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:contentDescription="@string/widget_content_desc_next"
|
2025-09-20 21:13:23 +02:00
|
|
|
android:src="@drawable/ic_skip_next"
|
|
|
|
|
android:tint="@color/widget_icon_tint" />
|
2025-09-16 18:00:51 +02:00
|
|
|
</LinearLayout>
|
2025-09-20 21:13:23 +02:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/controls_secondary"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_shuffle"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="44dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:contentDescription="@string/widget_content_desc_shuffle"
|
|
|
|
|
android:src="@drawable/ic_shuffle"
|
|
|
|
|
android:tint="@color/widget_icon_tint" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_repeat"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="44dp"
|
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:contentDescription="@string/widget_content_desc_repeat"
|
|
|
|
|
android:src="@drawable/ic_repeat"
|
|
|
|
|
android:tint="@color/widget_icon_tint" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|