2022-04-12 23:55:08 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:id="@+id/playlist"
|
2022-08-15 13:29:48 +05:30
|
|
|
style="@style/ItemRow">
|
2022-04-12 23:55:08 +05:30
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
|
|
android:id="@+id/guideline"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2022-06-03 22:19:48 +05:30
|
|
|
app:layout_constraintGuide_percent=".45" />
|
|
|
|
|
2022-04-12 23:55:08 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card_playlist_thumbnail"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2022-06-27 22:47:52 +05:30
|
|
|
app:cardCornerRadius="8dp"
|
2022-04-12 23:55:08 +05:30
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintDimensionRatio="16:9"
|
2022-06-27 22:47:52 +05:30
|
|
|
app:layout_constraintEnd_toStartOf="@+id/guideline"
|
2022-04-12 23:55:08 +05:30
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0.0"
|
2022-06-27 22:47:52 +05:30
|
|
|
app:strokeWidth="0dp">
|
2022-04-12 23:55:08 +05:30
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/playlist_thumbnail"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic" />
|
2022-11-05 16:36:55 +05:30
|
|
|
|
2023-08-19 14:13:22 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
2023-06-19 18:43:47 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
2023-08-19 14:13:22 +05:30
|
|
|
app:cardCornerRadius="0dp"
|
|
|
|
app:cardElevation="10dp"
|
|
|
|
app:strokeWidth="0dp">
|
2022-11-05 16:36:55 +05:30
|
|
|
|
2023-08-19 14:13:22 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-11-05 16:36:55 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-08-19 14:13:22 +05:30
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingVertical="2dp">
|
2022-11-05 16:36:55 +05:30
|
|
|
|
2023-08-19 14:13:22 +05:30
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:srcCompat="@drawable/ic_playlist"
|
|
|
|
app:tint="?colorControlNormal" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/video_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:paddingStart="5dp"
|
|
|
|
android:textColor="?colorControlNormal"
|
|
|
|
tools:ignore="RtlSymmetry"
|
|
|
|
tools:text="20" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2022-11-05 16:36:55 +05:30
|
|
|
|
2023-08-19 14:13:22 +05:30
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2022-04-12 23:55:08 +05:30
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playlist_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
2022-11-06 20:20:52 +05:30
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
2022-11-07 23:48:55 +05:30
|
|
|
android:textSize="18sp"
|
2023-03-24 20:52:16 +05:30
|
|
|
app:layout_constraintEnd_toStartOf="@+id/bookmark_playlist"
|
2022-04-12 23:55:08 +05:30
|
|
|
app:layout_constraintStart_toEndOf="@+id/card_playlist_thumbnail"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playlist_description"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
2022-11-07 23:48:55 +05:30
|
|
|
android:layout_marginTop="3dp"
|
2022-11-06 21:05:36 +05:30
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textSize="14sp"
|
2023-03-24 20:52:16 +05:30
|
|
|
app:layout_constraintEnd_toStartOf="@id/bookmark_playlist"
|
2022-04-12 23:55:08 +05:30
|
|
|
app:layout_constraintStart_toEndOf="@+id/card_playlist_thumbnail"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/playlist_title" />
|
2022-06-03 22:19:48 +05:30
|
|
|
|
2022-04-15 16:56:06 +05:30
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
2023-03-24 20:52:16 +05:30
|
|
|
android:id="@+id/bookmark_playlist"
|
2022-04-15 16:56:06 +05:30
|
|
|
android:layout_width="0dp"
|
2022-04-15 00:21:54 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-11-05 16:36:55 +05:30
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:padding="8dp"
|
2023-03-24 20:52:16 +05:30
|
|
|
android:src="@drawable/ic_bookmark"
|
|
|
|
android:visibility="gone"
|
2022-04-15 00:21:54 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2023-06-24 23:14:34 +05:30
|
|
|
app:shapeAppearanceOverlay="@style/RoundedImageView" />
|
2022-04-12 23:55:08 +05:30
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|