64 lines
2.6 KiB
XML
64 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright 2016 Hippo Seven
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
|
|
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/draw_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
app:consumeSystemWindowsInsets="start|end"
|
|
app:edgeToEdge="true"
|
|
app:fitsSystemWindowsInsets="start|end">
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:id="@+id/snackbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.hippo.ehviewer.widget.AboveSnackerLayout
|
|
android:id="@+id/absnacker"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
android:id="@+id/fragment_container"
|
|
android:name="androidx.navigation.fragment.NavHostFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:defaultNavHost="true"
|
|
app:navGraph="@navigation/nav_graph" />
|
|
</com.hippo.ehviewer.widget.AboveSnackerLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
<com.google.android.material.navigation.NavigationView
|
|
android:id="@+id/nav_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
app:headerLayout="@layout/nav_header_main"
|
|
app:menu="@menu/nav_drawer_main" />
|
|
|
|
<com.hippo.widget.DrawerView
|
|
android:id="@+id/right_drawer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:fitsSystemWindows="true"
|
|
android:maxWidth="@dimen/drawer_max_width" />
|
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|