Allow zooming on images
This commit is contained in:
parent
e08fc2604f
commit
b0c4b010a2
@ -34,6 +34,9 @@ class ImageFragment : Fragment() {
|
|||||||
view.webcontent.visibility = View.VISIBLE
|
view.webcontent.visibility = View.VISIBLE
|
||||||
view.webcontent.settings.setLoadWithOverviewMode(true)
|
view.webcontent.settings.setLoadWithOverviewMode(true)
|
||||||
view.webcontent.settings.setUseWideViewPort(true)
|
view.webcontent.settings.setUseWideViewPort(true)
|
||||||
|
view.webcontent.settings.setSupportZoom(true)
|
||||||
|
view.webcontent.settings.setBuiltInZoomControls(true)
|
||||||
|
view.webcontent.settings.setDisplayZoomControls(false)
|
||||||
view.webcontent.loadUrl(allImages[0])
|
view.webcontent.loadUrl(allImages[0])
|
||||||
|
|
||||||
return view
|
return view
|
||||||
|
Loading…
Reference in New Issue
Block a user