along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>. -->
<!-- `android:layout_weight="1"` sets the `RelativeLayout` to fill the rest of the screen because it is encapsulated in a `LinearLayout` with `android:orientation="vertical"`.-->
+<!-- `android:background=@color/gray_900` sets the background color that is displayed when a website is loading in night mode. -->
<RelativeLayout
android:id="@+id/main_webview_relativelayout"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
+ android:background="@color/gray_900"
tools:context="com.stoutner.privacybrowser.activities.MainWebViewActivity"
- tools:showIn="@layout/main_drawerlayout">
+ tools:showIn="@layout/main_drawerlayout" >
<com.google.android.gms.ads.AdView
android:id="@+id/adview"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="SMART_BANNER"
- ads:adUnitId="@string/ad_id">
+ ads:adUnitId="@string/ad_id" >
</com.google.android.gms.ads.AdView>
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_refreshlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_above="@id/adview">
+ android:layout_above="@id/adview" >
<!-- 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