mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 23:00:31 +05:30
79 lines
3.4 KiB
XML
79 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: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"
|
||
|
android:layout_margin="8dp"
|
||
|
android:layout_marginBottom="16dp"
|
||
|
android:background="?android:attr/selectableItemBackground"
|
||
|
android:id="@+id/video_search"
|
||
|
>
|
||
|
|
||
|
<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=".5"/>
|
||
|
<com.google.android.material.card.MaterialCardView
|
||
|
android:id="@+id/card_search_thumbnail"
|
||
|
app:cardCornerRadius="8dp"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="0dp"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintDimensionRatio="16:9"
|
||
|
app:layout_constraintHorizontal_bias="0.0"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
app:layout_constraintVertical_bias="0.0"
|
||
|
app:layout_constraintEnd_toStartOf="@+id/guideline">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/playlist_thumbnail"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
tools:srcCompat="@tools:sample/backgrounds/scenic" />
|
||
|
<TextView
|
||
|
android:id="@+id/playlist_duration"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="bottom|end"
|
||
|
android:layout_margin="5dp"
|
||
|
android:textColor="@color/duration_text_color"
|
||
|
android:background="@color/duration_background_color"
|
||
|
android:padding="0.5dp"/>
|
||
|
</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:text="TextView"
|
||
|
app:layout_constraintEnd_toStartOf="@+id/delete_playlist"
|
||
|
app:layout_constraintStart_toEndOf="@+id/card_search_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:text="TextView"
|
||
|
app:layout_constraintEnd_toStartOf="@+id/delete_playlist"
|
||
|
app:layout_constraintStart_toEndOf="@+id/card_search_thumbnail"
|
||
|
app:layout_constraintTop_toBottomOf="@+id/playlist_title" />
|
||
|
<com.google.android.material.imageview.ShapeableImageView
|
||
|
android:id="@+id/delete_playlist"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:shapeAppearanceOverlay="@style/roundedImageViewRounded"
|
||
|
android:src="@drawable/ic_delete"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
android:background="?android:attr/selectableItemBackground"
|
||
|
android:padding="8dp"
|
||
|
android:visibility="gone"
|
||
|
/>
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|