ultrasonic-app-subsonic-and.../ultrasonic/src/main/res/layout/navigation_activity.xml

51 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
a:id="@+id/drawer_layout"
a:layout_width="match_parent"
a:layout_height="match_parent"
tools:context="org.moire.ultrasonic.activity.NavigationActivity">
<RelativeLayout
a:layout_width="match_parent"
a:layout_height="match_parent"
a:orientation="vertical">
<androidx.appcompat.widget.Toolbar
a:id="@+id/toolbar"
a:layout_width="match_parent"
a:layout_height="wrap_content" />
<androidx.fragment.app.FragmentContainerView
a:id="@+id/nav_host_fragment"
a:name="androidx.navigation.fragment.NavHostFragment"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:layout_above="@+id/now_playing_fragment"
a:layout_below="@+id/toolbar"
app:defaultNavHost="true"
app:navGraph="@navigation/navigation_graph" />
<androidx.fragment.app.FragmentContainerView
a:id="@+id/now_playing_fragment"
a:name="org.moire.ultrasonic.fragment.NowPlayingFragment"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:layout_alignParentBottom="true"
app:defaultNavHost="true"
app:navGraph="@navigation/navigation_graph" />
</RelativeLayout>
<com.google.android.material.navigation.NavigationView
a:id="@+id/nav_view"
a:layout_width="wrap_content"
a:layout_height="match_parent"
a:layout_gravity="start"
a:fitsSystemWindows="true"
a:background="?attr/color_menu_background"
a:theme="@style/ThemeOverlay.AppCompat.navTheme"
app:headerLayout="@layout/navigation_header"
app:menu="@menu/navigation" />
</androidx.drawerlayout.widget.DrawerLayout>