1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2016-2022 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/>. -->
21 <androidx.coordinatorlayout.widget.CoordinatorLayout
22 android:id="@+id/bookmarks_coordinatorlayout"
23 xmlns:android="http://schemas.android.com/apk/res/android"
24 xmlns:app="http://schemas.android.com/apk/res-auto"
25 android:layout_height="match_parent"
26 android:layout_width="match_parent" >
28 <!-- The linear layout with `orientation="vertical"` keeps the content above the app bar layout. `app:layout_dodgeInsetEdges="bottom"` as a child of a coordinator layout moves the view above snackbars. -->
30 android:layout_height="match_parent"
31 android:layout_width="match_parent"
32 android:orientation="vertical"
33 app:layout_dodgeInsetEdges="bottom" >
35 <!-- `android:choiceMode="multipleChoiceModal"` allows the contextual action menu to select more than one item at a time.
36 `android:dividerHeight` must be at least `1dp` or the list view is inconsistent in calculating how many bookmarks are displayed. -->
38 android:id="@+id/bookmarks_listview"
39 android:layout_height="0dp"
40 android:layout_width="match_parent"
41 android:layout_weight="1"
42 android:choiceMode="multipleChoiceModal"
43 android:divider="@color/transparent"
44 android:dividerHeight="1dp" />
46 <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
47 <com.google.android.material.appbar.AppBarLayout
48 android:id="@+id/bookmarks_appbarlayout"
49 android:layout_height="wrap_content"
50 android:layout_width="match_parent"
51 android:background="?android:attr/colorBackground"
52 android:theme="@style/PrivacyBrowserAppBar" >
54 <androidx.appcompat.widget.Toolbar
55 android:id="@+id/bookmarks_toolbar"
56 android:layout_height="wrap_content"
57 android:layout_width="match_parent" />
58 </com.google.android.material.appbar.AppBarLayout>
61 <com.google.android.material.floatingactionbutton.FloatingActionButton
62 android:id="@+id/create_bookmark_folder_fab"
63 android:layout_height="wrap_content"
64 android:layout_width="wrap_content"
65 android:layout_gravity="bottom|end"
66 android:layout_marginEnd="16dp"
67 android:layout_marginBottom="140dp"
68 android:src="@drawable/create_folder"
69 android:tint="?attr/fabIconTintColor"
70 android:contentDescription="@string/create_folder" />
72 <com.google.android.material.floatingactionbutton.FloatingActionButton
73 android:id="@+id/create_bookmark_fab"
74 android:layout_height="wrap_content"
75 android:layout_width="wrap_content"
76 android:layout_gravity="bottom|end"
77 android:layout_marginEnd="16dp"
78 android:layout_marginBottom="70dp"
79 android:src="@drawable/create_bookmark"
80 android:tint="?attr/fabIconTintColor"
81 android:contentDescription="@string/create_bookmark" />
82 </androidx.coordinatorlayout.widget.CoordinatorLayout>