Note that there are some explanatory texts on larger screens.

plurals
  1. POZoom Control is not working for map
    primarykey
    data
    text
    <p>I am having the webview in my application, and i will be getting the data for that webview dynamically, I am having the zoom in control for that view. zoom in control is appearing when i get this url <a href="http://content.vaayoo.com/AppsPlatForm/DealsaheadWeb/m_facebooks.aspx?Token=moc.liamg@liahs" rel="nofollow">http://content.vaayoo.com/AppsPlatForm/DealsaheadWeb/m_facebooks.aspx?Token=moc.liamg@liahs</a>. but when i get the below url <a href="https://maps.google.com/?saddr=12.9302,77.5831&amp;daddr=12.928464,77.584258" rel="nofollow">https://maps.google.com/?saddr=12.9302,77.5831&amp;daddr=12.928464,77.584258</a>, zoom control is not appearing. what excatly is the problem? any kind of help is highly appreciated.. below is my code.. </p> <pre><code> protected void applyStyles() { // applying the zooming property to webview. final FrameLayout.LayoutParams ZOOM_PARAMS = new FrameLayout.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, Gravity.TOP); View zoom = ((WebView) view).getZoomControls(); FrameLayout ContentView = (FrameLayout) ((Activity) context) .getWindow().getDecorView().findViewById(android.R.id.content); ContentView.addView(zoom, ZOOM_PARAMS); zoom.setVisibility(View.VISIBLE); } </code></pre> <p>Below is the code where i am doing all the setting for webview..</p> <pre><code>if (data != null &amp;&amp; webview != null) { String webData = data.toString(); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setLoadWithOverviewMode(true); webview.getSettings().setDefaultZoom(WebSettings.ZoomDensity.MEDIUM); webview.getSettings().setUseWideViewPort(false); //webview.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS); webview.getSettings().setBuiltInZoomControls(true); webview.getSettings().setSupportZoom(true); webview.requestFocus(View.FOCUS_DOWN); webview.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: case MotionEvent.ACTION_UP: if (!v.hasFocus()) { v.requestFocus(); } break; } return false; } }); System.out.println("webdata" + webData); if (webData.startsWith("http")) { webview.loadUrl(webData); } else { webview.loadData(webData, "text/html", "utf-8"); } } </code></pre> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload