2021-04-24 11:45:53 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-11-21 13:54:49 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:clipChildren="false"
|
2020-11-21 13:54:49 +01:00
|
|
|
android:orientation="horizontal"
|
2020-11-30 20:54:05 +01:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="3dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:paddingBottom="3dp">
|
2020-11-21 13:54:49 +01:00
|
|
|
|
2021-04-16 10:08:31 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/song_cover_image_view"
|
|
|
|
|
android:layout_width="52dp"
|
|
|
|
|
android:layout_height="52dp"
|
2020-11-21 13:54:49 +01:00
|
|
|
android:layout_gravity="center"
|
2020-11-23 09:28:20 +01:00
|
|
|
android:layout_margin="2dp"
|
2020-11-21 13:54:49 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-04-24 11:45:53 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2020-11-26 16:05:58 +01:00
|
|
|
|
2021-09-01 17:47:27 +02:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/track_number_text_view"
|
|
|
|
|
style="@style/TrackNumberTextView"
|
|
|
|
|
android:layout_width="52dp"
|
|
|
|
|
android:layout_height="52dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:layout_margin="2dp"
|
|
|
|
|
android:text="1"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/cover_image_separator"
|
|
|
|
|
android:layout_width="12dp"
|
|
|
|
|
android:layout_height="52dp"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/search_result_song_title_text_view"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/song_cover_image_view"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
|
2021-04-16 10:08:31 +02:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/search_result_song_title_text_view"
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/ItemTitleTextView"
|
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:ellipsize="marquee"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
2021-04-16 10:08:31 +02:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
|
android:paddingEnd="12dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
android:singleLine="true"
|
2021-04-16 10:08:31 +02:00
|
|
|
android:text="@string/label_placeholder"
|
2021-04-26 19:17:42 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/search_result_dowanload_indicator_image_view"
|
2021-09-01 17:47:27 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/cover_image_separator"
|
2021-04-24 11:45:53 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2020-11-23 09:28:20 +01:00
|
|
|
|
2021-04-24 11:45:53 +02:00
|
|
|
<LinearLayout
|
2021-08-02 15:37:29 +02:00
|
|
|
android:layout_width="wrap_content"
|
2021-04-16 10:08:31 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingEnd="12dp"
|
2021-08-02 15:37:29 +02:00
|
|
|
app:layout_constrainedWidth="true"
|
2021-04-26 19:17:42 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/search_result_dowanload_indicator_image_view"
|
2021-08-02 15:37:29 +02:00
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2021-09-01 17:47:27 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/cover_image_separator"
|
2021-04-24 11:45:53 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/search_result_song_title_text_view">
|
2020-11-21 13:54:49 +01:00
|
|
|
|
2021-04-24 11:45:53 +02:00
|
|
|
<TextView
|
2021-07-27 16:58:38 +02:00
|
|
|
android:id="@+id/album_artist_text_view"
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/ItemSubtitleTextView"
|
2021-08-02 15:37:29 +02:00
|
|
|
android:layout_width="0dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-02 15:37:29 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
|
android:maxLines="1"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:paddingEnd="4dp"
|
|
|
|
|
android:text="@string/label_placeholder" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/queue_separator_text_view"
|
|
|
|
|
style="@style/ItemSubtitleTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/label_dot_separator" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/search_result_song_duration_text_view"
|
|
|
|
|
style="@style/ItemSubtitleTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-02 15:37:29 +02:00
|
|
|
android:maxLines="1"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:paddingStart="4dp"
|
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
|
android:text="@string/label_placeholder" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-04-26 19:17:42 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/search_result_dowanload_indicator_image_view"
|
|
|
|
|
android:layout_width="18dp"
|
|
|
|
|
android:layout_height="18dp"
|
|
|
|
|
android:layout_margin="8dp"
|
2021-08-11 12:11:14 +02:00
|
|
|
android:background="@drawable/ic_download"
|
2021-04-27 11:05:58 +02:00
|
|
|
android:visibility="gone"
|
2021-04-26 19:17:42 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/search_result_song_more_button"
|
2021-04-27 11:05:58 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2021-04-26 19:17:42 +02:00
|
|
|
|
2021-04-24 11:45:53 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/search_result_song_more_button"
|
|
|
|
|
android:layout_width="18dp"
|
|
|
|
|
android:layout_height="18dp"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
|
android:background="@drawable/ic_more_vert"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
2021-04-16 10:08:31 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-04-24 11:45:53 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2021-04-16 10:08:31 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|