Scale image dimension to fit the display

This commit is contained in:
davidoskky 2020-12-12 14:24:17 +01:00
parent 0bab675560
commit 41e825bc50

View File

@ -28,6 +28,8 @@ class ImageFragment : Fragment() {
val view : View = inflater.inflate(R.layout.fragment_image, container, false) val view : View = inflater.inflate(R.layout.fragment_image, container, false)
view.webcontent.visibility = View.VISIBLE view.webcontent.visibility = View.VISIBLE
view.webcontent.settings.setLoadWithOverviewMode(true)
view.webcontent.settings.setUseWideViewPort(true)
view.webcontent.loadUrl(allImages[0]) view.webcontent.loadUrl(allImages[0])
return view return view