Allow zooming on images
This commit is contained in:
1 parent
e08fc2604f
commit
b0c4b010a2
1 file changed
+3
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user