mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 07:10:29 +05:30
100 lines
4.0 KiB
XML
100 lines
4.0 KiB
XML
<?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"
|
|
android:id="@+id/playlist"
|
|
style="@style/ItemRow">
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/guideline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent=".45" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/card_playlist_thumbnail"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:cardCornerRadius="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintDimensionRatio="16:9"
|
|
app:layout_constraintEnd_toStartOf="@+id/guideline"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="0.0"
|
|
app:strokeWidth="0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/playlist_thumbnail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="?colorPrimaryContainer"
|
|
android:gravity="center"
|
|
android:paddingVertical="2dp"
|
|
android:orientation="horizontal">
|
|
|
|
<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:text="20"
|
|
tools:ignore="RtlSymmetry" />
|
|
|
|
</LinearLayout>
|
|
</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"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textSize="18sp"
|
|
app:layout_constraintEnd_toStartOf="@+id/bookmark_playlist"
|
|
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"
|
|
android:layout_marginTop="3dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textSize="14sp"
|
|
app:layout_constraintEnd_toStartOf="@id/bookmark_playlist"
|
|
app:layout_constraintStart_toEndOf="@+id/card_playlist_thumbnail"
|
|
app:layout_constraintTop_toBottomOf="@+id/playlist_title" />
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/bookmark_playlist"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_bookmark"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:shapeAppearanceOverlay="@style/roundedImageViewRounded" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |