Scale image dimension to fit the display
This commit is contained in:
parent
0bab675560
commit
41e825bc50
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user