]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/bookmarks_drawer_top_appbar.xml
f4e37b27b4fa7d09ba9a1b5501d0a24673e7bf98
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / bookmarks_drawer_top_appbar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2017-2020,2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
7
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.
12
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.
17
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/>. -->
20
21 <FrameLayout
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">
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         <!-- A compound drawable doesn't work well because only the image view should execute the `onClick()`. -->
36         <LinearLayout
37             android:id="@+id/bookmarks_header_linearlayout"
38             android:layout_height="wrap_content"
39             android:layout_width="match_parent"
40             android:orientation="horizontal"
41             tools:ignore="UseCompoundDrawables" >
42
43             <ImageView
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
54             <TextView
55                 android:id="@+id/bookmarks_title_textview"
56                 android:layout_height="wrap_content"
57                 android:layout_width="match_parent"
58                 android:textStyle="bold"
59                 android:textSize="20sp"
60                 android:textColor="?android:attr/textColorPrimary"
61                 android:layout_margin="10dp" />
62         </LinearLayout>
63
64         <ListView
65             android:id="@+id/bookmarks_drawer_listview"
66             android:layout_height="0dp"
67             android:layout_width="match_parent"
68             android:layout_weight="1"
69             android:divider="@color/transparent"
70             android:dividerHeight="0dp" />
71     </LinearLayout>
72
73     <com.google.android.material.floatingactionbutton.FloatingActionButton
74         android:id="@+id/launch_bookmarks_activity_fab"
75         android:layout_height="wrap_content"
76         android:layout_width="wrap_content"
77         android:layout_gravity="bottom|end"
78         android:layout_marginEnd="16dp"
79         android:layout_marginBottom="155dp"
80         android:src="@drawable/bookmarks"
81         android:tint="?attr/fabIconTintColor"
82         android:contentDescription="@string/bookmarks" />
83
84     <com.google.android.material.floatingactionbutton.FloatingActionButton
85         android:id="@+id/create_bookmark_folder_fab"
86         android:layout_height="wrap_content"
87         android:layout_width="wrap_content"
88         android:layout_gravity="bottom|end"
89         android:layout_marginEnd="16dp"
90         android:layout_marginBottom="85dp"
91         android:src="@drawable/create_folder"
92         android:tint="?attr/fabIconTintColor"
93         android:contentDescription="@string/create_folder" />
94
95     <com.google.android.material.floatingactionbutton.FloatingActionButton
96         android:id="@+id/create_bookmark_fab"
97         android:layout_height="wrap_content"
98         android:layout_width="wrap_content"
99         android:layout_gravity="bottom|end"
100         android:layout_margin="16dp"
101         android:src="@drawable/create_bookmark"
102         android:tint="?attr/fabIconTintColor"
103         android:contentDescription="@string/create_bookmark" />
104 </FrameLayout>