1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2017-2022, 2024 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android/>.
8 Privacy Browser Android 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 Android 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 Android. 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:tools="http://schemas.android.com/tools"
25 android:layout_height="match_parent"
26 android:layout_width="match_parent"
27 android:layout_gravity="end">
30 android:layout_height="match_parent"
31 android:layout_width="match_parent"
32 android:orientation="vertical"
33 android:background="?android:attr/colorBackground" >
36 android:id="@+id/bookmarks_drawer_listview"
37 android:layout_height="0dp"
38 android:layout_width="match_parent"
39 android:layout_weight="1"
40 android:divider="@color/transparent"
41 android:dividerHeight="0dp" />
43 <!-- A compound drawable doesn't work well because only the image view should execute the `onClick()`. -->
45 android:id="@+id/bookmarks_header_linearlayout"
46 android:layout_height="wrap_content"
47 android:layout_width="match_parent"
48 android:orientation="horizontal"
49 tools:ignore="UseCompoundDrawables" >
53 android:layout_height="match_parent"
54 android:layout_width="wrap_content"
55 android:layout_gravity="center_vertical"
56 android:paddingStart="15dp"
57 android:paddingEnd="15dp"
58 android:src="@drawable/back"
59 android:onClick="bookmarksBack"
60 android:contentDescription="@string/back" />
62 <!-- Bookmarks folder title. -->
64 android:id="@+id/bookmarks_title_textview"
65 android:layout_height="wrap_content"
66 android:layout_width="0dp"
67 android:layout_weight="1"
68 android:textStyle="bold"
69 android:textSize="20sp"
70 android:textColor="?android:attr/textColorPrimary"
71 android:layout_margin="10dp" />
75 android:id="@+id/bookmarks_drawer_pinned_imageview"
76 android:layout_height="match_parent"
77 android:layout_width="wrap_content"
78 android:layout_gravity="center_vertical"
79 android:paddingStart="15dp"
80 android:paddingEnd="20dp"
81 android:onClick="toggleBookmarksDrawerPinned"
82 android:contentDescription="@string/pin_drawer" />
86 <com.google.android.material.floatingactionbutton.FloatingActionButton
87 android:id="@+id/launch_bookmarks_activity_fab"
88 android:layout_height="wrap_content"
89 android:layout_width="wrap_content"
90 android:layout_gravity="bottom|end"
91 android:layout_marginEnd="16dp"
92 android:layout_marginBottom="200dp"
93 android:src="@drawable/bookmarks"
94 android:tint="@color/fab_icon"
95 android:contentDescription="@string/bookmarks" />
97 <com.google.android.material.floatingactionbutton.FloatingActionButton
98 android:id="@+id/create_bookmark_folder_fab"
99 android:layout_height="wrap_content"
100 android:layout_width="wrap_content"
101 android:layout_gravity="bottom|end"
102 android:layout_marginEnd="16dp"
103 android:layout_marginBottom="130dp"
104 android:src="@drawable/create_folder"
105 android:tint="@color/fab_icon"
106 android:contentDescription="@string/create_folder" />
108 <com.google.android.material.floatingactionbutton.FloatingActionButton
109 android:id="@+id/create_bookmark_fab"
110 android:layout_height="wrap_content"
111 android:layout_width="wrap_content"
112 android:layout_gravity="bottom|end"
113 android:layout_marginEnd="16dp"
114 android:layout_marginBottom="60dp"
115 android:src="@drawable/create_bookmark"
116 android:tint="@color/fab_icon"
117 android:contentDescription="@string/create_bookmark" />