<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright © 2019 Soren Stoutner <soren@stoutner.com>.
+ Copyright © 2019-2020 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>>.
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="?attr/webViewBackground" >
+ android:layout_height="match_parent" >
- <!-- The WebView is initially `visibility="invisible"` so that the background color matches the theme. -->
+ <!-- The nested scroll WebView is created with `visibility="invisible"` to prevent a white background splash in night mode because there is a delay in setting the background color.
+ It is set visible in `initializeWebView()` or `onProgressChanged()` in `MainWebViewActivity`. -->
<com.stoutner.privacybrowser.views.NestedScrollWebView
android:id="@+id/nestedscroll_webview"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
+ android:background="?android:attr/colorBackground"
android:visibility="invisible" />
<!-- `android:max` changes the maximum `ProgressBar` value from 10000 to 100 to match progress percentage.