This commit is contained in:
tom5079
2020-09-11 20:45:31 +09:00
parent a8de1429c1
commit b1c1e96135
2 changed files with 3 additions and 4 deletions

View File

@@ -82,16 +82,16 @@ class ReaderAdapter(private val activity: ReaderActivity,
cache = Cache.getInstance(holder.view.context, galleryID)
if (isFullScreen) {
holder.view.container.layoutParams.height = ConstraintLayout.LayoutParams.MATCH_PARENT
holder.view.layoutParams.height = ConstraintLayout.LayoutParams.MATCH_PARENT
} else {
holder.view.container.layoutParams.height = ConstraintLayout.LayoutParams.WRAP_CONTENT
holder.view.layoutParams.height = ConstraintLayout.LayoutParams.WRAP_CONTENT
}
holder.view.image.setOnPhotoTapListener { _, _, _ ->
onItemClickListener?.invoke(position)
}
holder.view.container.setOnClickListener {
holder.view.setOnClickListener {
onItemClickListener?.invoke(position)
}

View File

@@ -19,7 +19,6 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintHeight_max="2000dp"