0efd90f684470dd0d7347dc4271b5812e0b7c1af
[PrivacyBrowser.git] / app / src / main / res / layout / activity_webview.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2015-2016 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://privacybrowser.stoutner.com/>.
7
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.
12
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.
17
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/>. -->
20
21 <!-- Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
22 <android.support.design.widget.CoordinatorLayout
23     android:id="@+id/rootCoordinatorLayout"
24     xmlns:android="http://schemas.android.com/apk/res/android"
25     xmlns:app="http://schemas.android.com/apk/res-auto"
26     xmlns:tools="http://schemas.android.com/tools"
27     tools:context="com.stoutner.privacybrowser.MainWebViewActivity"
28     android:layout_width="match_parent"
29     android:layout_height="match_parent"
30     android:focusable="true"
31     android:focusableInTouchMode="true" >
32
33     <android.support.design.widget.AppBarLayout
34         android:id="@+id/appBarLayout"
35         android:layout_width="match_parent"
36         android:layout_height="wrap_content"
37         android:theme="@style/AppTheme.AppBarOverlay" >
38
39         <android.support.v7.widget.Toolbar
40             android:id="@+id/appBar"
41             android:layout_width="match_parent"
42             android:layout_height="?attr/actionBarSize"
43             android:background="?attr/colorPrimary"
44             app:popupTheme="@style/AppTheme.PopupOverlay" />
45     </android.support.design.widget.AppBarLayout>
46
47     <include layout="@layout/ad_view" />
48
49     <!-- fullScreenVideoFrameLayout is used to display full screen videos.  It is initially android:visibility="gone" to hide it from view. -->
50     <FrameLayout
51         android:id="@+id/fullScreenVideoFrameLayout"
52         android:layout_width="match_parent"
53         android:layout_height="match_parent"
54         android:visibility="gone"
55         android:background="@color/black" />
56 </android.support.design.widget.CoordinatorLayout>