made from and to textboxes wider in the cut video screen added search engines in the search view removed filename template override if the user leaves it empty. Now it follows the yt-dlp default fixed app crashing when its tablet added drag handle to scrolling content added pause functionality made video player faster to load for youtube videos
153 lines
6.7 KiB
XML
153 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintDimensionRatio="H,16:9"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/result_card_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:cardCornerRadius="20dp"
|
|
app:cardElevation="5dp"
|
|
app:strokeColor="?attr/colorPrimary"
|
|
app:checkedIconTint="?attr/colorPrimary"
|
|
app:cardMaxElevation="12dp"
|
|
app:cardPreventCornerOverlap="true"
|
|
android:checkable="true"
|
|
app:strokeWidth="0dp"
|
|
android:layout_margin="10dp">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/result_image_view"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
android:id="@+id/download_progress"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="bottom"
|
|
android:indeterminate="true"
|
|
android:visibility="gone"
|
|
android:alpha="0.7"
|
|
android:scaleY="100" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:dividerPadding="5dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toTopOf="@+id/download_music"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/result_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:paddingStart="10dp"
|
|
android:paddingTop="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:scrollbars="none"
|
|
android:shadowColor="@color/black"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="2"
|
|
android:textColor="#FFF"
|
|
android:textSize="17sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/author"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:gravity="bottom"
|
|
android:maxLines="1"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:scrollbars="none"
|
|
android:shadowColor="@color/black"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="1.5"
|
|
android:textColor="#FFF"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
android:gravity="bottom"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:paddingBottom="20dp"
|
|
android:shadowColor="@color/black"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="1.5"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/download_music"
|
|
style="@style/Widget.Material3.ExtendedFloatingActionButton.Icon.Secondary"
|
|
android:layout_width="55dp"
|
|
app:elevation="0dp"
|
|
android:elevation="0dp"
|
|
app:borderWidth="0dp"
|
|
android:layout_height="55dp"
|
|
android:layout_marginVertical="10dp"
|
|
android:layout_marginHorizontal="5dp"
|
|
app:icon="@drawable/ic_music"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/download_video" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/download_video"
|
|
style="@style/Widget.Material3.ExtendedFloatingActionButton.Icon.Secondary"
|
|
android:layout_width="55dp"
|
|
android:layout_height="55dp"
|
|
android:layout_margin="10dp"
|
|
app:elevation="0dp"
|
|
android:elevation="0dp"
|
|
app:borderWidth="0dp"
|
|
app:icon="@drawable/ic_video"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</RelativeLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|