2021-04-16 10:08:31 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-12-05 21:31:12 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="24dp"
|
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
|
android:paddingEnd="24dp"
|
|
|
|
|
android:paddingBottom="3dp"
|
2021-04-16 10:08:31 +02:00
|
|
|
android:background="@color/cardColor"
|
|
|
|
|
android:foreground="?attr/selectableItemBackground">
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-04-16 10:08:31 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/queue_song_cover_image_view"
|
|
|
|
|
android:layout_width="52dp"
|
|
|
|
|
android:layout_height="52dp"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_margin="2dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-04-16 10:08:31 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-04-16 10:08:31 +02:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/queue_song_title_text_view"
|
2021-04-15 16:43:38 +02:00
|
|
|
android:layout_width="0dp"
|
2021-04-16 10:08:31 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit ="marquee_forever"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
|
android:text="@string/label_placeholder"
|
2021-04-24 11:45:53 +02:00
|
|
|
|
|
|
|
|
style="@style/ItemTitleTextView"
|
|
|
|
|
|
2021-04-16 10:08:31 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/queue_song_cover_image_view"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-16 18:00:19 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/queue_song_holder_image"/>
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-04-18 10:10:53 +02:00
|
|
|
<LinearLayout
|
2021-04-16 10:08:31 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-18 10:10:53 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingEnd="12dp"
|
2021-04-16 10:08:31 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/queue_song_title_text_view"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/queue_song_cover_image_view"
|
2021-04-18 10:10:53 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/queue_song_holder_image">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/queue_song_artist_text_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
android:paddingEnd="4dp"
|
|
|
|
|
android:text="@string/label_placeholder"
|
2021-04-24 11:45:53 +02:00
|
|
|
|
|
|
|
|
style="@style/ItemSubtitleTextView"/>
|
2021-04-18 10:10:53 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/queue_separator_text_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/label_dot_separator"
|
2021-04-24 11:45:53 +02:00
|
|
|
|
|
|
|
|
style="@style/ItemSubtitleTextView"/>
|
2021-04-18 10:10:53 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/queue_song_duration_text_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
|
android:text="@string/label_placeholder"
|
2021-04-24 11:45:53 +02:00
|
|
|
|
|
|
|
|
style="@style/ItemSubtitleTextView"/>
|
2021-04-18 10:10:53 +02:00
|
|
|
</LinearLayout>
|
2020-12-05 21:31:12 +01:00
|
|
|
|
|
|
|
|
<ImageView
|
2021-04-16 18:00:19 +02:00
|
|
|
android:id="@+id/queue_song_holder_image"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_width="36dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:gravity="center_vertical"
|
2021-04-16 10:08:31 +02:00
|
|
|
android:src="@drawable/ic_drag_handle"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|