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://www.stoutner.com/privacy-browser>>.
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 <android.support.v4.widget.DrawerLayout
22 xmlns:android="http://schemas.android.com/apk/res/android"
23 android:id="@+id/drawerLayout"
24 android:layout_height="match_parent"
25 android:layout_width="match_parent" >
27 <!-- The main content view. -->
28 <!-- android:fitsSystemWindows="true" moves rootCoordinatorLayout below the system status bar. -->
29 <!-- Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
30 <android.support.design.widget.CoordinatorLayout
31 android:id="@+id/rootCoordinatorLayout"
32 xmlns:android="http://schemas.android.com/apk/res/android"
33 xmlns:app="http://schemas.android.com/apk/res-auto"
34 xmlns:tools="http://schemas.android.com/tools"
35 tools:context="com.stoutner.privacybrowser.MainWebViewActivity"
36 android:layout_width="match_parent"
37 android:layout_height="match_parent"
38 android:fitsSystemWindows="true"
39 android:focusable="true"
40 android:focusableInTouchMode="true" >
42 <android.support.design.widget.AppBarLayout
43 android:id="@+id/appBarLayout"
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 android:theme="@style/AppTheme.AppBarOverlay" >
48 <android.support.v7.widget.Toolbar
49 android:id="@+id/appBar"
50 android:layout_width="match_parent"
51 android:layout_height="?attr/actionBarSize"
52 android:background="?attr/colorPrimary"
53 app:popupTheme="@style/AppTheme.PopupOverlay" />
54 </android.support.design.widget.AppBarLayout>
56 <include layout="@layout/main_webview" />
58 <!-- fullScreenVideoFrameLayout is used to display full screen videos. It is initially android:visibility="gone" to hide it from view. -->
60 android:id="@+id/fullScreenVideoFrameLayout"
61 android:layout_width="match_parent"
62 android:layout_height="match_parent"
63 android:visibility="gone"
64 android:background="@color/black" />
65 </android.support.design.widget.CoordinatorLayout>
67 <!-- The navigation drawer. -->
69 android:id="@+id/navigationDrawer"
70 android:layout_width="240dp"
71 android:layout_height="match_parent"
72 android:layout_gravity="start"
73 android:choiceMode="singleChoice"
74 android:background="@color/white"/>
76 </android.support.v4.widget.DrawerLayout>