Loading core/java/android/webkit/WebSettings.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,12 @@ public abstract class WebSettings { * Sets the default zoom density of the page. This must be called from the UI * Sets the default zoom density of the page. This must be called from the UI * thread. The default is {@link ZoomDensity#MEDIUM}. * thread. The default is {@link ZoomDensity#MEDIUM}. * * * This setting is not recommended for use in new applications. If the WebView * is utilized to display mobile-oriented pages, the desired effect can be achieved by * adjusting 'width' and 'initial-scale' attributes of page's 'meta viewport' * tag. For pages lacking the tag, {@link android.webkit.WebView#setInitialScale} * and {@link #setUseWideViewPort} can be used. * * @param zoom the zoom density * @param zoom the zoom density */ */ public void setDefaultZoom(ZoomDensity zoom) { public void setDefaultZoom(ZoomDensity zoom) { Loading @@ -510,6 +516,8 @@ public abstract class WebSettings { * Gets the default zoom density of the page. This should be called from * Gets the default zoom density of the page. This should be called from * the UI thread. * the UI thread. * * * This setting is not recommended for use in new applications. * * @return the zoom density * @return the zoom density * @see #setDefaultZoom * @see #setDefaultZoom */ */ Loading Loading
core/java/android/webkit/WebSettings.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,12 @@ public abstract class WebSettings { * Sets the default zoom density of the page. This must be called from the UI * Sets the default zoom density of the page. This must be called from the UI * thread. The default is {@link ZoomDensity#MEDIUM}. * thread. The default is {@link ZoomDensity#MEDIUM}. * * * This setting is not recommended for use in new applications. If the WebView * is utilized to display mobile-oriented pages, the desired effect can be achieved by * adjusting 'width' and 'initial-scale' attributes of page's 'meta viewport' * tag. For pages lacking the tag, {@link android.webkit.WebView#setInitialScale} * and {@link #setUseWideViewPort} can be used. * * @param zoom the zoom density * @param zoom the zoom density */ */ public void setDefaultZoom(ZoomDensity zoom) { public void setDefaultZoom(ZoomDensity zoom) { Loading @@ -510,6 +516,8 @@ public abstract class WebSettings { * Gets the default zoom density of the page. This should be called from * Gets the default zoom density of the page. This should be called from * the UI thread. * the UI thread. * * * This setting is not recommended for use in new applications. * * @return the zoom density * @return the zoom density * @see #setDefaultZoom * @see #setDefaultZoom */ */ Loading