LibreTube/app/src/main/res/layout/dialog_download.xml

59 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:paddingHorizontal="20dp">
<com.github.libretube.ui.views.AppNameTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="center" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
android:hint="@string/filename">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/fileName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text" />
</com.google.android.material.textfield.TextInputLayout>
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/video_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/video"
app:icon="@drawable/ic_video" />
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/audio_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/audio"
app:icon="@drawable/ic_audio" />
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/subtitle_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_caption"
app:hint="@string/captions" />
<Button
android:id="@+id/download"
style="@style/CustomDialogButton"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="15dp"
android:text="@string/download" />
</LinearLayout>