feat: PC steuern im neuen Stil, Warteschlange, Playlists, dauerhafte Verbindung (1.3.0)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-06 16:20:44 +01:00
co-authored by Claude Sonnet 5.5
parent 968920e7f3
commit 29d38ef2e6
30 changed files with 1584 additions and 342 deletions
+305 -88
View File
@@ -1,50 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/remoteRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background"
android:orientation="vertical"
android:padding="20dp">
android:background="@color/remote_background">
<TextView
android:id="@+id/remoteHeading"
<!-- Farbverlauf aus der Cover-Farbe -->
<View
android:id="@+id/gradient"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/pc_title"
android:textColor="@color/text"
android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:id="@+id/remoteStatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="@color/text_muted"
android:textSize="14sp" />
android:layout_height="match_parent" />
<!-- Geraeteliste: PCs im WLAN -->
<LinearLayout
android:id="@+id/devicePanel"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:orientation="vertical">
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageButton
android:id="@+id/deviceBack"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pc_back_to_player"
android:src="@drawable/ic_keyboard_arrow_down"
android:visibility="gone" />
<TextView
android:id="@+id/remoteHeading"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/pc_title"
android:textColor="@color/text"
android:textSize="24sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:id="@+id/remoteStatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="@color/text_muted"
android:textSize="14sp" />
<ListView
android:id="@+id/deviceList"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="12dp"
android:layout_weight="1"
android:divider="@color/surface"
android:dividerHeight="1dp" />
android:divider="@null"
android:dividerHeight="0dp"
android:scrollbars="none" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="8dp"
android:text="@string/pc_hint"
android:textColor="@color/text_muted"
android:textSize="13sp" />
@@ -70,77 +92,172 @@
android:layout_weight="1"
android:text="@string/pc_manual" />
</LinearLayout>
<Button
android:id="@+id/disconnectButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/pc_disconnect"
android:visibility="gone" />
</LinearLayout>
<!-- Fernbedienung fuer den verbundenen PC -->
<!-- Player im Stil einer Streaming-Fernbedienung -->
<LinearLayout
android:id="@+id/playerPanel"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:gravity="center_horizontal"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingBottom="8dp"
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="56dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageButton
android:id="@+id/closeButton"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pc_close"
android:src="@drawable/ic_keyboard_arrow_down" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pc_playing_on"
android:textColor="@color/text_muted"
android:textSize="11sp" />
<TextView
android:id="@+id/deviceName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/text"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
<ImageButton
android:id="@+id/devicesButton"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pc_devices"
android:src="@drawable/ic_computer" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:orientation="horizontal">
<Button
android:id="@+id/tabYoutube"
style="?android:attr/borderlessButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="36dp"
android:layout_weight="1"
android:text="YouTube" />
android:text="YouTube"
android:textColor="@color/text"
android:textSize="13sp" />
<Button
android:id="@+id/tabMusic"
style="?android:attr/borderlessButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="36dp"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:text="YouTube Music" />
android:text="YouTube Music"
android:textColor="@color/text"
android:textSize="13sp" />
</LinearLayout>
<ImageView
android:id="@+id/cover"
<FrameLayout
android:id="@+id/coverBox"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/pc_cover"
android:scaleType="fitCenter" />
android:layout_marginTop="12dp"
android:layout_weight="1">
<TextView
android:id="@+id/trackTitle"
<ImageView
android:id="@+id/cover"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_gravity="center"
android:background="@drawable/bg_tile"
android:contentDescription="@string/pc_cover"
android:scaleType="centerCrop" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/text"
android:textSize="20sp"
android:textStyle="bold" />
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/trackSubtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/text_muted"
android:textSize="15sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/trackTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/text"
android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:id="@+id/trackSubtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/text_muted"
android:textSize="15sp" />
</LinearLayout>
<ImageButton
android:id="@+id/likeButton"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pc_like"
android:src="@drawable/ic_favorite_border" />
</LinearLayout>
<SeekBar
android:id="@+id/positionBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:progressTint="@color/brand_to"
android:thumbTint="@color/brand_to" />
android:layout_marginStart="-16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="-16dp"
android:progressBackgroundTint="#55FFFFFF"
android:progressTint="@color/text"
android:thumbTint="@color/text" />
<LinearLayout
android:layout_width="match_parent"
@@ -164,56 +281,64 @@
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginTop="4dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageButton
android:id="@+id/likeButton"
android:layout_width="48dp"
android:id="@+id/shuffleButton"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pc_like"
android:src="@drawable/ic_like" />
android:contentDescription="@string/pc_shuffle"
android:src="@drawable/ic_shuffle" />
<ImageButton
android:id="@+id/previousButton"
android:layout_width="56dp"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginStart="12dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_previous"
android:src="@android:drawable/ic_media_previous" />
android:scaleType="center"
android:src="@drawable/ic_skip_previous" />
<ImageButton
android:id="@+id/playPauseButton"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_marginStart="12dp"
android:layout_marginEnd="12dp"
android:background="@drawable/bg_play_button"
android:background="@drawable/bg_play_white"
android:contentDescription="@string/action_play"
android:src="@android:drawable/ic_media_play" />
android:src="@drawable/ic_play"
android:tint="#000000" />
<ImageButton
android:id="@+id/nextButton"
android:layout_width="56dp"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_next"
android:src="@android:drawable/ic_media_next" />
android:scaleType="center"
android:src="@drawable/ic_skip_next" />
<View
android:layout_width="60dp"
android:layout_height="1dp" />
<ImageButton
android:id="@+id/repeatButton"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pc_repeat"
android:src="@drawable/ic_repeat" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="4dp"
android:gravity="center_vertical"
android:orientation="horizontal">
@@ -221,7 +346,7 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:contentDescription="@string/pc_volume"
android:src="@android:drawable/ic_lock_silent_mode_off"
android:src="@drawable/ic_volume_up"
android:tint="@color/text_muted" />
<SeekBar
@@ -230,15 +355,107 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:max="100"
android:progressTint="@color/brand_from"
android:thumbTint="@color/brand_from" />
android:progressBackgroundTint="#55FFFFFF"
android:progressTint="@color/text"
android:thumbTint="@color/text" />
</LinearLayout>
<Button
android:id="@+id/disconnectButton"
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/pc_disconnect" />
android:layout_marginTop="4dp"
android:orientation="horizontal">
<Button
android:id="@+id/queueButton"
style="?android:attr/borderlessButtonStyle"
android:layout_width="0dp"
android:layout_height="44dp"
android:layout_weight="1"
android:background="@drawable/bg_pill"
android:drawableStart="@drawable/ic_queue_music"
android:drawablePadding="8dp"
android:drawableTint="@color/text"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/pc_queue"
android:textAllCaps="false"
android:textColor="@color/text"
android:textSize="14sp" />
<Button
android:id="@+id/playlistsButton"
style="?android:attr/borderlessButtonStyle"
android:layout_width="0dp"
android:layout_height="44dp"
android:layout_marginStart="12dp"
android:layout_weight="1"
android:background="@drawable/bg_pill"
android:drawableStart="@drawable/ic_library_music"
android:drawablePadding="8dp"
android:drawableTint="@color/text"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/pc_playlists"
android:textAllCaps="false"
android:textColor="@color/text"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- Vollbild-Liste: Warteschlange oder Playlists -->
<LinearLayout
android:id="@+id/listPanel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/remote_background"
android:clickable="true"
android:focusable="true"
android:orientation="vertical"
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="56dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="8dp"
android:paddingEnd="16dp">
<ImageButton
android:id="@+id/listBack"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pc_back_to_player"
android:src="@drawable/ic_keyboard_arrow_down" />
<TextView
android:id="@+id/listTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:textColor="@color/text"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:id="@+id/listMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
android:textColor="@color/text_muted"
android:textSize="15sp"
android:visibility="gone" />
<ListView
android:id="@+id/itemList"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:divider="@null"
android:dividerHeight="0dp" />
</LinearLayout>
</FrameLayout>