mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-15 17:25:06 +01:00
78 lines
3.3 KiB
XML
78 lines
3.3 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<eu.kanade.tachiyomi.ui.download.DownloadBottomSheet 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:id="@+id/dl_bottom_sheet"
|
||
|
style="@style/BottomSheetDialogTheme"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:background="@drawable/bg_bottom_sheet_dialog_fragment"
|
||
|
android:backgroundTint="?android:attr/colorBackground"
|
||
|
android:orientation="vertical"
|
||
|
app:behavior_peekHeight="48sp"
|
||
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/sheet_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
android:background="@drawable/bg_bottom_sheet_dialog_fragment"
|
||
|
android:backgroundTint="?attr/colorPrimaryVariant"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/pill"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:alpha="0.25"
|
||
|
android:contentDescription="@string/drag_handle"
|
||
|
android:src="@drawable/draggable_pill"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
||
|
<com.google.android.material.textview.MaterialTextView
|
||
|
android:id="@+id/title_text"
|
||
|
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:layout_marginStart="10dp"
|
||
|
android:layout_marginEnd="10dp"
|
||
|
android:layout_marginBottom="10dp"
|
||
|
android:layout_marginTop="6dp"
|
||
|
android:ellipsize="end"
|
||
|
android:gravity="center"
|
||
|
android:maxLines="1"
|
||
|
android:textAlignment="center"
|
||
|
android:textColor="?actionBarTintColor"
|
||
|
android:textSize="18sp"
|
||
|
tools:text="Downloads" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<FrameLayout
|
||
|
android:background="?android:attr/colorBackground"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:id="@+id/dl_recycler"
|
||
|
android:clipToPadding="false"
|
||
|
tools:listitem="@layout/download_item"/>
|
||
|
|
||
|
<eu.kanade.tachiyomi.widget.EmptyView
|
||
|
android:id="@+id/empty_view"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:visibility="gone"/>
|
||
|
</FrameLayout>
|
||
|
</eu.kanade.tachiyomi.ui.download.DownloadBottomSheet>
|