activity_main.xml (4023B)
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 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 xmlns:tools="http://schemas.android.com/tools"> 22 23 <com.google.android.material.appbar.AppBarLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:fitsSystemWindows="true"> 27 28 <com.google.android.material.appbar.MaterialToolbar 29 android:id="@+id/toolbar" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" /> 32 33 </com.google.android.material.appbar.AppBarLayout> 34 35 <LinearLayout 36 android:layout_width="match_parent" 37 android:layout_height="match_parent" 38 android:orientation="vertical" 39 app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> 40 41 <me.zhanghai.android.materialprogressbar.MaterialProgressBar 42 android:id="@+id/progress_bar" 43 style="@style/Widget.MaterialProgressBar.ProgressBar" 44 android:layout_width="match_parent" 45 android:layout_height="4dp" 46 android:elevation="4dp" 47 android:indeterminate="true" 48 android:visibility="gone" 49 app:mpb_progressStyle="horizontal" 50 app:mpb_useIntrinsicPadding="false" 51 tools:visibility="visible" /> 52 53 <FrameLayout 54 android:id="@+id/offline_banner" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:background="?attr/colorPrimary" 58 android:animateLayoutChanges="true" 59 android:visibility="gone" 60 tools:visibility="visible"> 61 <TextView 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:layout_margin="10dp" 65 android:textAlignment="center" 66 android:textColor="?attr/colorOnPrimary" 67 android:text="@string/offline_banner" /> 68 </FrameLayout> 69 70 <androidx.fragment.app.FragmentContainerView 71 android:id="@+id/nav_host_fragment" 72 android:name="androidx.navigation.fragment.NavHostFragment" 73 android:layout_width="match_parent" 74 android:layout_height="0dp" 75 android:layout_weight="1" 76 app:defaultNavHost="true" 77 app:navGraph="@navigation/nav_graph" /> 78 79 </LinearLayout> 80 81 <LinearLayout 82 android:id="@+id/biometricOverlay" 83 android:layout_width="match_parent" 84 android:layout_height="match_parent" 85 android:gravity="center" 86 android:background="?colorSurface" 87 tools:visibility="gone"> 88 <com.google.android.material.button.MaterialButton 89 android:id="@+id/unlockButton" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:text="@string/biometric_unlock_label" 93 app:icon="@drawable/ic_shield"/> 94 </LinearLayout> 95 96 </androidx.coordinatorlayout.widget.CoordinatorLayout>