]> gitweb.stoutner.com Git - PrivacyCell.git/blob - app/src/main/res/layout/settings_bottom_appbar.xml
Release 1.11.
[PrivacyCell.git] / app / src / main / res / layout / settings_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: 2021-2022, 2025 Soren Stoutner <soren@stoutner.com>
6
7   This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell/>.
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 <!-- API 35 (Android 15) requires setting `android:fitsSystemWindows="true"`. -->
23 <androidx.coordinatorlayout.widget.CoordinatorLayout
24     xmlns:android="http://schemas.android.com/apk/res/android"
25     android:layout_height="match_parent"
26     android:layout_width="match_parent"
27     android:fitsSystemWindows="true" >
28
29     <!-- The linear layout with `orientation="vertical"` moves the app bar layout below the main content. -->
30     <LinearLayout
31         android:layout_height="match_parent"
32         android:layout_width="match_parent"
33         android:orientation="vertical" >
34
35         <!-- Preferences FrameLayout. -->
36         <FrameLayout
37             android:id="@+id/preferences_framelayout"
38             android:layout_height="0dp"
39             android:layout_width="match_parent"
40             android:layout_weight="1"/>
41
42         <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
43         <com.google.android.material.appbar.AppBarLayout
44             android:layout_height="wrap_content"
45             android:layout_width="match_parent"
46             android:background="?android:attr/colorBackground"
47             android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
48
49             <androidx.appcompat.widget.Toolbar
50                 android:id="@+id/toolbar"
51                 android:layout_height="wrap_content"
52                 android:layout_width="match_parent" />
53         </com.google.android.material.appbar.AppBarLayout>
54     </LinearLayout>
55 </androidx.coordinatorlayout.widget.CoordinatorLayout>