]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout-w900dp/bookmarks_drawer.xml
Switch to the new Day/Night theme. https://redmine.stoutner.com/issues/522
[PrivacyBrowserAndroid.git] / app / src / main / res / layout-w900dp / bookmarks_drawer.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2017,2019-2020 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>>.
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 <!-- `android:layout_width="400dp"` keeps the bookmarks drawer from filling the whole screen on a tablet. -->
22 <FrameLayout
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     android:id="@+id/bookmarks_framelayout"
25     android:layout_height="match_parent"
26     android:layout_width="400dp"
27     android:layout_gravity="end" >
28
29     <LinearLayout
30         android:layout_height="match_parent"
31         android:layout_width="match_parent"
32         android:orientation="vertical"
33         android:background="?android:attr/colorBackground" >
34
35         <TextView
36             android:id="@+id/bookmarks_title_textview"
37             android:layout_height="wrap_content"
38             android:layout_width="match_parent"
39             android:textStyle="bold"
40             android:textSize="20sp"
41             android:textColor="?android:attr/textColorPrimary"
42             android:layout_margin="10dp" />
43
44         <ListView
45             android:id="@+id/bookmarks_drawer_listview"
46             android:layout_height="0dp"
47             android:layout_width="match_parent"
48             android:layout_weight="1"
49             android:divider="@color/transparent"
50             android:dividerHeight="0dp" />
51     </LinearLayout>
52
53     <com.google.android.material.floatingactionbutton.FloatingActionButton
54         android:id="@+id/launch_bookmarks_activity_fab"
55         android:layout_height="wrap_content"
56         android:layout_width="wrap_content"
57         android:layout_gravity="bottom|end"
58         android:layout_marginEnd="16dp"
59         android:layout_marginBottom="155dp"
60         android:src="?attr/bookmarksIcon" />
61
62     <com.google.android.material.floatingactionbutton.FloatingActionButton
63         android:id="@+id/create_bookmark_folder_fab"
64         android:layout_height="wrap_content"
65         android:layout_width="wrap_content"
66         android:layout_gravity="bottom|end"
67         android:layout_marginEnd="16dp"
68         android:layout_marginBottom="85dp"
69         android:src="?attr/createFolderIcon" />
70
71     <com.google.android.material.floatingactionbutton.FloatingActionButton
72         android:id="@+id/create_bookmark_fab"
73         android:layout_height="wrap_content"
74         android:layout_width="wrap_content"
75         android:layout_gravity="bottom|end"
76         android:layout_margin="16dp"
77         android:src="?attr/createBookmarkIcon" />
78 </FrameLayout>