Fixed Image UI

This commit is contained in:
tom5079
2020-09-12 10:32:23 +09:00
parent b1c1e96135
commit 2170403662
3 changed files with 9 additions and 5 deletions

View File

@@ -85,6 +85,9 @@ class ReaderAdapter(private val activity: ReaderActivity,
holder.view.layoutParams.height = ConstraintLayout.LayoutParams.MATCH_PARENT
} else {
holder.view.layoutParams.height = ConstraintLayout.LayoutParams.WRAP_CONTENT
(holder.view.progress_layout.layoutParams as ConstraintLayout.LayoutParams)
.dimensionRatio = "${reader!!.galleryInfo.files[position].width}:${reader!!.galleryInfo.files[position].height}"
}
holder.view.image.setOnPhotoTapListener { _, _, _ ->