1 <?xml version="1.0" encoding="utf-8"?>
4 SPDX-License-Identifier: GPL-3.0-or-later
5 SPDX-FileCopyrightText: 2021-2022, 2025 Soren Stoutner <soren@stoutner.com>
7 This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell/>.
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
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
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/>. -->
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" >
29 <!-- The linear layout with `orientation="vertical"` moves the app bar layout below the main content. -->
31 android:layout_height="match_parent"
32 android:layout_width="match_parent"
33 android:orientation="vertical" >
35 <!-- Preferences FrameLayout. -->
37 android:id="@+id/preferences_framelayout"
38 android:layout_height="0dp"
39 android:layout_width="match_parent"
40 android:layout_weight="1"/>
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" >
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>
55 </androidx.coordinatorlayout.widget.CoordinatorLayout>