2021-12-11 19:27:16 +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"
|
2022-06-14 21:29:02 +05:30
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-12-11 19:27:16 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-06-14 21:29:02 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:attr/selectableItemBackground">
|
2021-12-11 19:27:16 +05:30
|
|
|
|
2022-02-02 18:08:57 +05:30
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/thumbnailcard"
|
2021-12-11 19:27:16 +05:30
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2022-06-14 21:29:02 +05:30
|
|
|
android:elevation="10dp"
|
|
|
|
app:cardCornerRadius="8dp"
|
2021-12-11 19:27:16 +05:30
|
|
|
app:layout_constraintDimensionRatio="16:9"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-06-14 21:29:02 +05:30
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2022-02-02 18:08:57 +05:30
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="match_parent"
|
2022-07-16 01:07:44 +05:30
|
|
|
android:layout_height="match_parent" />
|
2022-06-03 22:19:48 +05:30
|
|
|
|
2022-07-28 12:48:32 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-02-15 02:17:50 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-07-28 12:48:32 +05:30
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:orientation="vertical">
|
2022-06-14 21:29:02 +05:30
|
|
|
|
2022-07-28 12:48:32 +05:30
|
|
|
<androidx.cardview.widget.CardView
|
2022-06-14 21:29:02 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-07-28 12:48:32 +05:30
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
app:cardBackgroundColor="@color/duration_background_color"
|
|
|
|
app:cardCornerRadius="8dp"
|
|
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/thumbnail_duration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingHorizontal="6dp"
|
|
|
|
android:paddingVertical="2dp"
|
|
|
|
android:textColor="@color/duration_text_color"
|
|
|
|
tools:text="05:36" />
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/watch_progress"
|
2022-07-29 15:10:36 +05:30
|
|
|
style="@style/WatchProgress"
|
|
|
|
android:layout_height="5dp" />
|
2022-06-14 21:29:02 +05:30
|
|
|
|
2022-07-28 12:48:32 +05:30
|
|
|
</LinearLayout>
|
2022-06-14 21:29:02 +05:30
|
|
|
|
2022-02-02 18:08:57 +05:30
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
2021-12-11 19:27:16 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2022-06-14 21:29:02 +05:30
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
2021-12-11 19:27:16 +05:30
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold"
|
2022-02-02 18:08:57 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="@+id/thumbnailcard"
|
2021-12-11 19:27:16 +05:30
|
|
|
app:layout_constraintStart_toEndOf="@+id/channel_image"
|
2022-07-28 19:41:35 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@+id/thumbnailcard"
|
|
|
|
tools:text="Title" />
|
2021-12-11 19:27:16 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_channel"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2022-06-14 21:29:02 +05:30
|
|
|
android:paddingBottom="16dp"
|
2021-12-11 19:27:16 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="@+id/textView_title"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/textView_title"
|
2022-07-28 19:41:35 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@+id/textView_title"
|
|
|
|
tools:text="Channel Name" />
|
2021-12-11 19:27:16 +05:30
|
|
|
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
android:id="@+id/channel_image"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-02-02 18:08:57 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@+id/thumbnailcard"
|
2021-12-11 19:27:16 +05:30
|
|
|
app:srcCompat="@mipmap/ic_launcher" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|