diff options
author | Torsten Grote <t@grobox.de> | 2020-02-25 10:53:36 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-02-25 10:53:36 -0300 |
commit | bde95551fcacbc6cec2881fe45ca27a54aaed07e (patch) | |
tree | 30d009ec866edc1e57b77393110ec18e082bd0b0 /app/src/main/res/layout/app_bar_main.xml | |
parent | 662f4c237c6d96f8600833976f5adef88139305e (diff) | |
download | merchant-terminal-android-bde95551fcacbc6cec2881fe45ca27a54aaed07e.tar.gz merchant-terminal-android-bde95551fcacbc6cec2881fe45ca27a54aaed07e.tar.bz2 merchant-terminal-android-bde95551fcacbc6cec2881fe45ca27a54aaed07e.zip |
Show snackbars at the top of the order, not at the bottom
Diffstat (limited to 'app/src/main/res/layout/app_bar_main.xml')
-rw-r--r-- | app/src/main/res/layout/app_bar_main.xml | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 01c4602..a4ddb39 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.coordinatorlayout.widget.CoordinatorLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" @@ -8,8 +7,8 @@ tools:context=".MainActivity"> <com.google.android.material.appbar.AppBarLayout - android:layout_height="wrap_content" android:layout_width="match_parent" + android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> <androidx.appcompat.widget.Toolbar @@ -17,11 +16,22 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" - app:popupTheme="@style/AppTheme.PopupOverlay"/> + app:popupTheme="@style/AppTheme.PopupOverlay" /> </com.google.android.material.appbar.AppBarLayout> - <include layout="@layout/content_main"/> - + <androidx.fragment.app.FragmentContainerView + android:id="@+id/navHostFragment" + android:name="androidx.navigation.fragment.NavHostFragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:defaultNavHost="true" + app:layout_insetEdge="top" + app:layout_behavior="@string/appbar_scrolling_view_behavior" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:navGraph="@navigation/nav_graph" /> -</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file +</androidx.coordinatorlayout.widget.CoordinatorLayout> |