|
@@ -1,47 +1,15 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:paddingHorizontal="16dp"
|
|
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/header_layout"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- android:gravity="center"
|
|
|
|
|
- android:paddingHorizontal="16dp"
|
|
|
|
|
- android:paddingBottom="8dp"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:paddingVertical="16dp"
|
|
|
|
|
- android:minHeight="0dp"
|
|
|
|
|
- android:layout_gravity="center_horizontal" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/bottom_sheet_title"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:text="@string/photo"
|
|
|
|
|
- android:textSize="18sp"
|
|
|
|
|
- android:textStyle="bold" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:paddingHorizontal="16dp">
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.image.PhotoView
|
|
<io.legado.app.ui.widget.image.PhotoView
|
|
|
android:id="@+id/photo_view"
|
|
android:id="@+id/photo_view"
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/header_layout"
|
|
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- android:scaleType="centerInside" />
|
|
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:adjustViewBounds="true"
|
|
|
|
|
+ android:scaleType="fitCenter" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|