|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
<?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"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
@ -8,43 +9,78 @@
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingTop="20dp"
|
|
|
|
|
android:paddingBottom="0dp"
|
|
|
|
|
android:paddingHorizontal="20dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
|
android:paddingTop="20dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bottom_sheet_title"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:textSize="25sp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/download" />
|
|
|
|
|
android:text="@string/download"
|
|
|
|
|
android:textSize="25sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bottom_sheet_subtitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/configure_download" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
android:text="@string/configure_download"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/bottom_sheet_title" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/bottomsheet_schedule_button"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:icon="@drawable/ic_clock"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/bottomsheet_download_button"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/bottomsheet_download_button"
|
|
|
|
|
style="@style/Widget.Material3.Button.ElevatedButton.Icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:autoLink="all"
|
|
|
|
|
android:text="@string/download"
|
|
|
|
|
app:icon="@drawable/ic_down"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
|
android:id="@+id/download_tablayout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
|
|
|
|
app:tabMode="scrollable"
|
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
|
|
|
|
app:tabGravity="fill"
|
|
|
|
|
android:id="@+id/download_tablayout" >
|
|
|
|
|
app:tabMode="scrollable">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.tabs.TabItem
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
@ -62,62 +98,15 @@
|
|
|
|
|
android:text="@string/run_command" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.tabs.TabLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
|
android:id="@+id/download_viewpager"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:id="@+id/download_viewpager" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
|
android:padding="10dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
|
|
android:id="@+id/bottomsheet_schedule_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
|
app:icon="@drawable/ic_clock" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
|
android:gravity="end"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
|
android:id="@+id/bottomsheet_cancel_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/cancel"
|
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
|
app:icon="@drawable/ic_cancel" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
style="@style/Widget.Material3.Button.ElevatedButton.Icon"
|
|
|
|
|
android:id="@+id/bottomsheet_download_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/download"
|
|
|
|
|
app:icon="@drawable/ic_down"
|
|
|
|
|
android:autoLink="all"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|