]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/bookmarks_drawer_bottom_appbar.xml
Bump the target API to 36. https://redmine.stoutner.com/issues/1283
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / bookmarks_drawer_bottom_appbar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   SPDX-License-Identifier: GPL-3.0-or-later
5   SPDX-FileCopyrightText: 2017-2022, 2024 Soren Stoutner <soren@stoutner.com>
6
7   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android/>.
8
9   This program is free software: you can redistribute it and/or modify it under
10   the terms of the GNU General Public License as published by the Free Software
11   Foundation, either version 3 of the License, or (at your option) any later
12   version.
13
14   This program is distributed in the hope that it will be useful, but WITHOUT
15   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16   FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17   details.
18
19   You should have received a copy of the GNU General Public License along with
20   this program.  If not, see <https://www.gnu.org/licenses/>. -->
21
22 <FrameLayout
23     android:id="@+id/bookmarks_framelayout"
24     xmlns:android="http://schemas.android.com/apk/res/android"
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" >
29
30     <LinearLayout
31         android:layout_height="match_parent"
32         android:layout_width="match_parent"
33         android:orientation="vertical"
34         android:background="?android:attr/colorBackground" >
35
36         <ListView
37             android:id="@+id/bookmarks_drawer_listview"
38             android:layout_height="0dp"
39             android:layout_width="match_parent"
40             android:layout_weight="1"
41             android:divider="@color/transparent"
42             android:dividerHeight="0dp" />
43
44         <!-- A compound drawable doesn't work well because only the image view should execute the `onClick()`. -->
45         <LinearLayout
46             android:id="@+id/bookmarks_header_linearlayout"
47             android:layout_height="wrap_content"
48             android:layout_width="match_parent"
49             android:orientation="horizontal"
50             tools:ignore="UseCompoundDrawables" >
51
52             <!-- Back arrow. -->
53             <ImageView
54                 android:layout_height="match_parent"
55                 android:layout_width="wrap_content"
56                 android:layout_gravity="center_vertical"
57                 android:paddingStart="15dp"
58                 android:paddingEnd="15dp"
59                 android:src="@drawable/back"
60                 android:onClick="bookmarksBack"
61                 android:contentDescription="@string/back" />
62
63             <!-- Bookmarks folder title. -->
64             <TextView
65                 android:id="@+id/bookmarks_title_textview"
66                 android:layout_height="wrap_content"
67                 android:layout_width="0dp"
68                 android:layout_weight="1"
69                 android:textStyle="bold"
70                 android:textSize="20sp"
71                 android:textColor="?android:attr/textColorPrimary"
72                 android:layout_margin="10dp" />
73
74             <!-- Pin. -->
75             <ImageView
76                 android:id="@+id/bookmarks_drawer_pinned_imageview"
77                 android:layout_height="match_parent"
78                 android:layout_width="wrap_content"
79                 android:layout_gravity="center_vertical"
80                 android:paddingStart="15dp"
81                 android:paddingEnd="20dp"
82                 android:onClick="toggleBookmarksDrawerPinned"
83                 android:contentDescription="@string/pin_drawer" />
84         </LinearLayout>
85     </LinearLayout>
86
87     <com.google.android.material.floatingactionbutton.FloatingActionButton
88         android:id="@+id/launch_bookmarks_activity_fab"
89         android:layout_height="wrap_content"
90         android:layout_width="wrap_content"
91         android:layout_gravity="bottom|end"
92         android:layout_marginEnd="16dp"
93         android:layout_marginBottom="200dp"
94         android:src="@drawable/bookmarks"
95         android:tint="@color/fab_icon"
96         android:contentDescription="@string/bookmarks" />
97
98     <com.google.android.material.floatingactionbutton.FloatingActionButton
99         android:id="@+id/create_bookmark_folder_fab"
100         android:layout_height="wrap_content"
101         android:layout_width="wrap_content"
102         android:layout_gravity="bottom|end"
103         android:layout_marginEnd="16dp"
104         android:layout_marginBottom="130dp"
105         android:src="@drawable/create_folder"
106         android:tint="@color/fab_icon"
107         android:contentDescription="@string/create_folder" />
108
109     <com.google.android.material.floatingactionbutton.FloatingActionButton
110         android:id="@+id/create_bookmark_fab"
111         android:layout_height="wrap_content"
112         android:layout_width="wrap_content"
113         android:layout_gravity="bottom|end"
114         android:layout_marginEnd="16dp"
115         android:layout_marginBottom="60dp"
116         android:src="@drawable/create_bookmark"
117         android:tint="@color/fab_icon"
118         android:contentDescription="@string/create_bookmark" />
119 </FrameLayout>