2023-01-09 09:39:19 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<layout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-09-24 11:26:52 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
|
|
<data>
|
|
|
|
<import type="androidx.lifecycle.LiveData" />
|
|
|
|
<import type="android.view.View" />
|
|
|
|
<import type="android.graphics.drawable.Drawable" />
|
|
|
|
<variable name="isBuffering" type="LiveData<Boolean>" />
|
|
|
|
<variable name="isPlaying" type="LiveData<Boolean>" />
|
|
|
|
<variable name="progress" type="LiveData<Integer>" />
|
|
|
|
<variable name="currentTrackTitle" type="LiveData<String>" />
|
|
|
|
<variable name="currentTrackArtist" type="LiveData<String>" />
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.motion.widget.MotionLayout
|
2023-01-09 09:39:19 +01:00
|
|
|
android:id="@+id/now_playing_root"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2023-09-24 11:26:52 +02:00
|
|
|
app:layoutDescription="@xml/fragment_now_playing_scene">
|
|
|
|
|
2023-01-09 09:39:19 +01:00
|
|
|
<include
|
|
|
|
android:id="@+id/header"
|
2023-09-24 11:26:52 +02:00
|
|
|
layout="@layout/partial_now_playing_header"
|
|
|
|
/>
|
2023-01-09 09:39:19 +01:00
|
|
|
|
2023-09-24 11:26:52 +02:00
|
|
|
<audio.funkwhale.ffa.views.SquareView
|
|
|
|
android:id="@+id/detail_image_placeholder"
|
2023-01-09 09:39:19 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2023-09-24 11:26:52 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/now_playing_progress"
|
2023-09-18 20:18:52 +02:00
|
|
|
/>
|
2023-01-09 09:39:19 +01:00
|
|
|
|
2023-09-18 20:18:52 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/now_playing_details_info"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_margin="8dp"
|
2023-09-24 11:26:52 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/detail_image_placeholder"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/detail_image_placeholder"
|
2023-09-18 20:18:52 +02:00
|
|
|
style="@style/IconButton"
|
|
|
|
android:background="@drawable/circle"
|
|
|
|
android:contentDescription="@string/alt_track_info"
|
|
|
|
android:src="@drawable/more"
|
2023-09-24 11:26:52 +02:00
|
|
|
app:tint="@color/controlForeground"
|
|
|
|
/>
|
2023-01-09 09:39:19 +01:00
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/controls"
|
|
|
|
layout="@layout/partial_now_playing_controls"
|
|
|
|
android:layout_width="match_parent"
|
2023-09-24 11:26:52 +02:00
|
|
|
android:layout_height="0dp"
|
2023-01-09 09:39:19 +01:00
|
|
|
android:layout_margin="8dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2023-09-24 11:26:52 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/detail_image_placeholder"
|
2023-01-09 09:39:19 +01:00
|
|
|
/>
|
2023-09-24 11:26:52 +02:00
|
|
|
</androidx.constraintlayout.motion.widget.MotionLayout>
|
2023-01-09 09:39:19 +01:00
|
|
|
</layout>
|