1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2015-2016 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://privacybrowser.stoutner.com/>.
8 Privacy Browser is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 Privacy Browser is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>. -->
21 <!-- Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
23 android:id="@+id/rootRelativeLayout"
24 xmlns:android="http://schemas.android.com/apk/res/android"
25 xmlns:app="http://schemas.android.com/apk/res-auto"
26 android:layout_width="match_parent"
27 android:layout_height="match_parent"
28 android:focusableInTouchMode="true" >
30 <android.support.v7.widget.Toolbar
31 android:id="@+id/appBar"
32 android:layout_width="match_parent"
33 android:layout_height="?attr/actionBarSize"
34 android:background="?attr/colorPrimary"
35 android:elevation="4dp"
36 android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
37 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
40 android:id="@+id/mainWebView"
41 android:layout_below="@id/appBar"
42 android:layout_width="match_parent"
43 android:layout_height="match_parent"
44 android:focusable="true"
45 android:focusableInTouchMode="true" />
47 <!-- fullScreenVideoFrameLayout is used to display full screen videos. It is initially android:visibility="gone" to hide it from view. -->
49 android:id="@+id/fullScreenVideoFrameLayout"
50 android:layout_width="match_parent"
51 android:layout_height="match_parent"
52 android:visibility="gone"
53 android:background="@color/black" />