83 lines
3.6 KiB
XML
83 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Aurora Store
|
|
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
|
~
|
|
~ Aurora Store is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 2 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ Aurora Store is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
|
|
~
|
|
-->
|
|
|
|
<androidx.drawerlayout.widget.DrawerLayout 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:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<include
|
|
android:id="@+id/view_toolbar"
|
|
layout="@layout/view_toolbar_main" />
|
|
|
|
<fragment
|
|
android:id="@+id/nav_host_fragment"
|
|
android:name="androidx.navigation.fragment.NavHostFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@id/nav_view"
|
|
android:layout_below="@+id/view_toolbar"
|
|
app:defaultNavHost="true"
|
|
app:navGraph="@navigation/mobile_navigation" />
|
|
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
|
android:id="@+id/nav_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
app:menu="@menu/menu_bottom_nav" />
|
|
</RelativeLayout>
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/search_fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_marginStart="@dimen/margin_normal"
|
|
android:layout_marginTop="@dimen/height_bottom_adj"
|
|
android:layout_marginEnd="@dimen/margin_normal"
|
|
android:layout_marginBottom="@dimen/height_bottom_adj"
|
|
app:backgroundTint="?colorAccent"
|
|
app:srcCompat="@drawable/ic_round_search"
|
|
app:tint="@color/colorWhite"
|
|
tools:ignore="ContentDescription" />
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
<com.google.android.material.navigation.NavigationView
|
|
android:id="@+id/navigation"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:background="?android:attr/colorBackground"
|
|
android:overScrollMode="never"
|
|
app:headerLayout="@layout/layout_nav_header"
|
|
app:itemTextAppearance="@style/TextAppearance.Aurora.Line1"
|
|
app:menu="@menu/menu_drawer" />
|
|
</androidx.drawerlayout.widget.DrawerLayout> |