mirror of https://github.com/deniscerri/ytdlnis
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
5.4 KiB
XML
120 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/downloads_card_constraintLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/downloads_relative_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintDimensionRatio="H,2.66:1"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/downloads_card_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:cardCornerRadius="10dp"
|
|
app:cardElevation="10dp"
|
|
app:cardMaxElevation="12dp"
|
|
android:checkable="true"
|
|
app:strokeWidth="0dp"
|
|
app:cardPreventCornerOverlap="true"
|
|
android:layout_margin="10dp">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/downloads_image_view"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<TextView
|
|
android:id="@+id/downloads_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:paddingTop="10dp"
|
|
android:paddingHorizontal="10dp"
|
|
android:scrollbars="none"
|
|
android:shadowColor="@color/black"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="10"
|
|
android:textColor="@color/white"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toStartOf="@+id/downloads_download_button_type"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/downloads_info_bottom"
|
|
android:layout_width="296dp"
|
|
android:layout_height="20dp"
|
|
android:ellipsize="end"
|
|
android:gravity="bottom"
|
|
android:maxLines="1"
|
|
android:layout_margin="10dp"
|
|
android:scrollbars="none"
|
|
android:shadowColor="@color/black"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="10"
|
|
android:textColor="@color/white"
|
|
android:textSize="11sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/downloads_title"
|
|
app:layout_constraintVertical_bias="1.0" />
|
|
|
|
<TextView
|
|
android:id="@+id/downloads_info_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="bottom|end"
|
|
android:layout_margin="10dp"
|
|
android:shadowColor="@color/black"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="10"
|
|
android:textColor="@color/white"
|
|
android:textSize="11sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/downloads_download_button_type"
|
|
app:layout_constraintVertical_bias="1.0" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/downloads_download_button_type"
|
|
style="@style/Widget.Material3.ExtendedFloatingActionButton.Icon.Secondary"
|
|
android:layout_width="55dp"
|
|
android:layout_height="55dp"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:clickable="false"
|
|
app:cornerRadius="10dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="0.2" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</RelativeLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |