activity_main.xml (2362B)
1 <?xml version="1.0" encoding="utf-8"?><!-- 2 ~ This file is part of GNU Taler 3 ~ (C) 2020 Taler Systems S.A. 4 ~ 5 ~ GNU Taler is free software; you can redistribute it and/or modify it under the 6 ~ terms of the GNU General Public License as published by the Free Software 7 ~ Foundation; either version 3, or (at your option) any later version. 8 ~ 9 ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY 10 ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 ~ A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 ~ 13 ~ You should have received a copy of the GNU General Public License along with 14 ~ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 --> 16 17 <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:fitsSystemWindows="true" 23 tools:context=".MainActivity"> 24 25 <com.google.android.material.appbar.AppBarLayout 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:theme="@style/AppTheme.AppBarOverlay"> 29 30 <androidx.appcompat.widget.Toolbar 31 android:id="@+id/toolbar" 32 android:layout_width="match_parent" 33 android:layout_height="?attr/actionBarSize" 34 android:background="?attr/colorPrimary" 35 app:popupTheme="@style/AppTheme.PopupOverlay"/> 36 37 </com.google.android.material.appbar.AppBarLayout> 38 39 <androidx.fragment.app.FragmentContainerView 40 android:id="@+id/nav_host_fragment" 41 android:name="androidx.navigation.fragment.NavHostFragment" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent" 44 app:defaultNavHost="true" 45 app:layout_behavior="@string/appbar_scrolling_view_behavior" 46 app:layout_constraintBottom_toBottomOf="parent" 47 app:layout_constraintLeft_toLeftOf="parent" 48 app:layout_constraintRight_toRightOf="parent" 49 app:layout_constraintTop_toTopOf="parent" 50 app:navGraph="@navigation/nav_graph" /> 51 52 </androidx.coordinatorlayout.widget.CoordinatorLayout>