462 lines
18 KiB
XML
462 lines
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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/remote_background">
|
|
|
|
<!-- Farbverlauf aus der Cover-Farbe -->
|
|
<View
|
|
android:id="@+id/gradient"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<!-- Geraeteliste: PCs im WLAN -->
|
|
<LinearLayout
|
|
android:id="@+id/devicePanel"
|
|
android:layout_width="match_parent"
|
|
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="@null"
|
|
android:dividerHeight="0dp"
|
|
android:scrollbars="none" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/pc_hint"
|
|
android:textColor="@color/text_muted"
|
|
android:textSize="13sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/searchButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/pc_search" />
|
|
|
|
<Button
|
|
android:id="@+id/manualButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
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>
|
|
|
|
<!-- Player im Stil einer Streaming-Fernbedienung -->
|
|
<LinearLayout
|
|
android:id="@+id/playerPanel"
|
|
android:layout_width="match_parent"
|
|
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="36dp"
|
|
android:layout_weight="1"
|
|
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="36dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_weight="1"
|
|
android:text="YouTube Music"
|
|
android:textColor="@color/text"
|
|
android:textSize="13sp" />
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/coverBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_weight="1">
|
|
|
|
<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:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<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_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"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/positionText"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textColor="@color/text_muted"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/durationText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/text_muted"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/shuffleButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/pc_shuffle"
|
|
android:src="@drawable/ic_shuffle" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/previousButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="56dp"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/action_previous"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_skip_previous" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/playPauseButton"
|
|
android:layout_width="72dp"
|
|
android:layout_height="72dp"
|
|
android:background="@drawable/bg_play_white"
|
|
android:contentDescription="@string/action_play"
|
|
android:src="@drawable/ic_play"
|
|
android:tint="#000000" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/nextButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="56dp"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/action_next"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_skip_next" />
|
|
|
|
<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="4dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@string/pc_volume"
|
|
android:src="@drawable/ic_volume_up"
|
|
android:tint="@color/text_muted" />
|
|
|
|
<SeekBar
|
|
android:id="@+id/volumeBar"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:max="100"
|
|
android:progressBackgroundTint="#55FFFFFF"
|
|
android:progressTint="@color/text"
|
|
android:thumbTint="@color/text" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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>
|
|
|
|
<!-- 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>
|