2020-12-05 21:31:12 +01:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:card_view="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"
|
|
|
|
|
android:background="?attr/selectableItemBackground">
|
|
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
|
android:id="@+id/imageView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_margin="2dp"
|
|
|
|
|
android:backgroundTint="@color/cardColor"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:tint="@color/subtitleTextColor"
|
|
|
|
|
card_view:cardCornerRadius="4dp"
|
|
|
|
|
card_view:cardElevation="2dp"
|
|
|
|
|
card_view:cardPreventCornerOverlap="false"
|
|
|
|
|
card_view:cardUseCompatPadding="false">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/queue_song_cover_image_view"
|
|
|
|
|
android:layout_width="52dp"
|
|
|
|
|
android:layout_height="52dp" />
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2021-04-15 16:43:38 +02:00
|
|
|
android:layout_width="0dp"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/queue_song_title_text_view"
|
2021-04-15 16:43:38 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1"
|
2021-04-15 08:45:48 +02:00
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit ="marquee_forever"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:scrollHorizontally="true"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
|
android:text="@string/label_placeholder"
|
|
|
|
|
android:textColor="@color/titleTextColor"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/queue_song_artist_text_view"
|
2021-04-15 16:43:38 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
android:text="@string/label_placeholder"
|
|
|
|
|
android:textColor="@color/subtitleTextColor"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/queue_song_dragger_image"
|
|
|
|
|
android:layout_width="36dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:gravity="center_vertical"
|
2021-04-15 08:45:48 +02:00
|
|
|
android:src="@drawable/ic_drag_handle" />
|
2020-12-05 21:31:12 +01:00
|
|
|
</LinearLayout>
|