1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2017-2020 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/>. -->
22 android:id="@+id/bookmarks_framelayout"
23 xmlns:android="http://schemas.android.com/apk/res/android"
24 xmlns:app="http://schemas.android.com/apk/res-auto"
25 xmlns:tools="http://schemas.android.com/tools"
26 android:layout_height="match_parent"
27 android:layout_width="match_parent"
28 android:layout_gravity="end">
31 android:layout_height="match_parent"
32 android:layout_width="match_parent"
33 android:orientation="vertical"
34 android:background="?android:attr/colorBackground" >
36 <!-- A compound drawable doesn't work well because only the image view should execute the `onClick()`. -->
38 android:layout_height="wrap_content"
39 android:layout_width="match_parent"
40 android:orientation="horizontal"
41 tools:ignore="UseCompoundDrawables" >
44 android:layout_height="match_parent"
45 android:layout_width="wrap_content"
46 android:layout_gravity="center_vertical"
47 android:paddingStart="15dp"
48 android:paddingEnd="15dp"
49 android:src="@drawable/back"
50 android:background="?attr/selectableItemBackground"
51 android:onClick="bookmarksBack"
52 android:contentDescription="@string/back"
53 app:tint="?android:attr/textColorPrimary" />
56 android:id="@+id/bookmarks_title_textview"
57 android:layout_height="wrap_content"
58 android:layout_width="match_parent"
59 android:textStyle="bold"
60 android:textSize="20sp"
61 android:textColor="?android:attr/textColorPrimary"
62 android:layout_margin="10dp" />
66 android:id="@+id/bookmarks_drawer_listview"
67 android:layout_height="0dp"
68 android:layout_width="match_parent"
69 android:layout_weight="1"
70 android:divider="@color/transparent"
71 android:dividerHeight="0dp" />
74 <com.google.android.material.floatingactionbutton.FloatingActionButton
75 android:id="@+id/launch_bookmarks_activity_fab"
76 android:layout_height="wrap_content"
77 android:layout_width="wrap_content"
78 android:layout_gravity="bottom|end"
79 android:layout_marginEnd="16dp"
80 android:layout_marginBottom="155dp"
81 android:src="@drawable/bookmarks_day"
82 android:tint="?attr/fabIconTintColor"
83 android:contentDescription="@string/bookmarks" />
85 <com.google.android.material.floatingactionbutton.FloatingActionButton
86 android:id="@+id/create_bookmark_folder_fab"
87 android:layout_height="wrap_content"
88 android:layout_width="wrap_content"
89 android:layout_gravity="bottom|end"
90 android:layout_marginEnd="16dp"
91 android:layout_marginBottom="85dp"
92 android:src="@drawable/create_folder"
93 android:tint="?attr/fabIconTintColor"
94 android:contentDescription="@string/create_folder" />
96 <com.google.android.material.floatingactionbutton.FloatingActionButton
97 android:id="@+id/create_bookmark_fab"
98 android:layout_height="wrap_content"
99 android:layout_width="wrap_content"
100 android:layout_gravity="bottom|end"
101 android:layout_margin="16dp"
102 android:src="@drawable/create_bookmark"
103 android:tint="?attr/fabIconTintColor"
104 android:contentDescription="@string/create_bookmark" />