2023-08-05 14:59:56 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-08-24 20:29:34 +05:30
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-08-05 14:59:56 +05:30
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-24 20:29:34 +05:30
|
|
|
android:layout_marginHorizontal="5dp"
|
2023-08-25 22:45:56 +05:30
|
|
|
app:cardElevation="0dp"
|
2023-08-24 20:29:34 +05:30
|
|
|
app:cardBackgroundColor="@android:color/transparent"
|
|
|
|
app:cardCornerRadius="10dp">
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/chaptersLL"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingHorizontal="10dp"
|
|
|
|
android:paddingVertical="5dp">
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="55dp"
|
|
|
|
android:layout_gravity="center">
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/chapter_image"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:shapeAppearanceOverlay="@style/RoundedImageView"
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
<androidx.cardview.widget.CardView
|
2023-08-05 14:59:56 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-24 20:29:34 +05:30
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
app:cardBackgroundColor="?colorPrimary"
|
|
|
|
app:cardCornerRadius="4dp"
|
|
|
|
app:cardElevation="0dp">
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/timeStamp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingHorizontal="3dp"
|
|
|
|
android:paddingVertical="1dp"
|
|
|
|
android:textColor="?colorOnPrimary"
|
|
|
|
android:textSize="10sp"
|
|
|
|
tools:ignore="SmallSp"
|
|
|
|
tools:text="05:36" />
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
</androidx.cardview.widget.CardView>
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
</FrameLayout>
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2023-08-05 14:59:56 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-08-24 20:29:34 +05:30
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:orientation="vertical">
|
2023-08-05 14:59:56 +05:30
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/chapter_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="3"
|
|
|
|
tools:text="Chapter title" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/duration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="3"
|
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="Duration: 5s" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2023-08-05 14:59:56 +05:30
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2023-08-24 20:29:34 +05:30
|
|
|
</androidx.cardview.widget.CardView>
|