mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
83 lines
3.4 KiB
XML
83 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:id="@+id/root"
|
|
android:clickable="true">
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/image_video_thumbnail"
|
|
android:layout_height="50dp"
|
|
android:layout_width="50dp"
|
|
android:scaleType="centerCrop"
|
|
app:shapeAppearanceOverlay="@style/roundedCorners_4dp"
|
|
app:srcCompat="@drawable/placeholder_video_thumbnail"
|
|
android:background="@drawable/video_thumbnail_outline"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:textSize="13dp"
|
|
android:textColor="@color/white"
|
|
android:fontFamily="@font/inter_light"
|
|
tools:text="Legendary grant recipient: Marvin Wißfeld Very Long Title That is Long"
|
|
android:maxLines="2"
|
|
app:layout_constraintLeft_toRightOf="@id/image_video_thumbnail"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintRight_toLeftOf="@+id/button_trash"
|
|
app:layout_constraintBottom_toTopOf="@id/text_metadata"
|
|
android:layout_marginStart="10dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_metadata"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:textSize="10dp"
|
|
android:textColor="@color/gray_e0"
|
|
android:fontFamily="@font/inter_extra_light"
|
|
tools:text="3 videos"
|
|
android:maxLines="1"
|
|
app:layout_constraintTop_toBottomOf="@id/text_name"
|
|
app:layout_constraintLeft_toRightOf="@id/image_video_thumbnail"
|
|
app:layout_constraintRight_toLeftOf="@+id/button_trash"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:layout_marginStart="10dp" />
|
|
|
|
<!--
|
|
<ImageButton
|
|
android:id="@+id/button_play"
|
|
android:layout_width="34dp"
|
|
android:layout_height="34dp"
|
|
app:srcCompat="@drawable/ic_play_white_nopad"
|
|
android:scaleType="fitCenter"
|
|
android:padding="8dp"
|
|
app:layout_constraintRight_toLeftOf="@id/button_trash"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:layout_marginEnd="10dp"/> -->
|
|
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_trash"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:contentDescription="@string/cd_button_delete"
|
|
app:srcCompat="@drawable/ic_trash"
|
|
android:padding="10dp"
|
|
android:scaleType="fitCenter"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |