activity_main.xml (2322B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 This file is part of GNUnet. 4 Copyright (C) 2021–2025 GNUnet e.V. 5 6 GNUnet is free software: you can redistribute it and/or modify it 7 under the terms of the GNU Affero General Public License as published 8 by the Free Software Foundation, either version 3 of the License, 9 or (at your option) any later version. 10 11 GNUnet is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Affero General Public License for more details. 15 16 You should have received a copy of the GNU Affero General Public License 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 19 SPDX-License-Identifier: AGPL3.0-or-later 20 21 @author t3sserakt 22 --> 23 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 24 xmlns:app="http://schemas.android.com/apk/res-auto" 25 xmlns:tools="http://schemas.android.com/tools" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:fitsSystemWindows="true" 29 tools:context=".MainActivity"> 30 31 <!-- Toolbar --> 32 <androidx.appcompat.widget.Toolbar 33 android:id="@+id/nav_bar" 34 android:layout_width="0dp" 35 android:layout_height="wrap_content" 36 android:background="?attr/colorPrimary" 37 android:elevation="4dp" 38 app:layout_constraintTop_toTopOf="parent" 39 app:layout_constraintStart_toStartOf="parent" 40 app:layout_constraintEnd_toEndOf="parent"> 41 </androidx.appcompat.widget.Toolbar> 42 43 <!-- NavHost Fragment for Navigation --> 44 <androidx.fragment.app.FragmentContainerView 45 android:id="@+id/nav_host_fragment" 46 android:name="androidx.navigation.fragment.NavHostFragment" 47 android:layout_width="0dp" 48 android:layout_height="0dp" 49 android:layout_marginTop="8dp" 50 app:defaultNavHost="true" 51 app:navGraph="@navigation/nav_graph" 52 app:layout_constraintTop_toBottomOf="@id/nav_bar" 53 app:layout_constraintStart_toStartOf="parent" 54 app:layout_constraintEnd_toEndOf="parent" 55 app:layout_constraintBottom_toBottomOf="parent" /> 56 </androidx.constraintlayout.widget.ConstraintLayout>