<p><img class="center" src="images/domain_settings.png"></p>
- <p>When visiting a domain that has domain settings specified, the background of the URL text box is green.</p>
+ <p>Al visitar un dominio que tiene la configuraciĆ³n de dominio especificada, el fondo de la casilla de texto de la URL es verde.</p>
<p><img class="center" src="../en/images/green_url_bar.png"></p>
</body>
// Hide zoom controls.
mainWebView.getSettings().setDisplayZoomControls(false);
+ // Set `mainWebView` to use a wide viewport. Otherwise, some web pages will be scrunched and some content will render outside the screen.
+ mainWebView.getSettings().setUseWideViewPort(true);
+
+ // Set `mainWebView` to load in overview mode (zoomed out to the maximum width).
+ mainWebView.getSettings().setLoadWithOverviewMode(true);
+
// Initialize cookieManager.
cookieManager = CookieManager.getInstance();
android:id="@+id/main_webview_relativelayout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
android:layout_height="0dp"
+ android:layout_width="match_parent"
android:layout_weight="1"
tools:context="com.stoutner.privacybrowser.activities.MainWebViewActivity"
tools:showIn="@layout/main_drawerlayout" >
<!-- Google does not currently want to support hiding the AppBar on scroll for a WebView child with the Support Toolbar. https://code.google.com/p/android/issues/detail?id=200394 -->
<WebView
android:id="@+id/main_webview"
- android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:layout_width="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"/>
</android.support.v4.widget.SwipeRefreshLayout>