pull/32/head
parent
afea9193a2
commit
973a00007f
@ -1,25 +1,26 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.drawerlayout.widget.DrawerLayout |
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
android:id="@+id/drawer_layout" |
||||
android:layout_width="match_parent" android:layout_height="match_parent" |
||||
tools:openDrawer="start"> |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
tools:context=".ui.main.MainActivity"> |
||||
|
||||
<include |
||||
layout="@layout/app_bar_main" |
||||
<io.legado.app.ui.widget.TitleBar |
||||
android:id="@+id/title_bar" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent"/> |
||||
android:fitsSystemWindows="true" |
||||
android:layout_height="wrap_content"/> |
||||
|
||||
<include layout="@layout/content_main"/> |
||||
|
||||
<com.google.android.material.navigation.NavigationView |
||||
android:id="@+id/nav_view" |
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton |
||||
android:id="@+id/fab" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="match_parent" |
||||
android:layout_gravity="start" |
||||
android:fitsSystemWindows="true" |
||||
app:insetForeground="@color/transparent" |
||||
app:headerLayout="@layout/nav_header_main" |
||||
app:menu="@menu/activity_main_drawer"/> |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="bottom|end" |
||||
android:layout_margin="@dimen/fab_margin" |
||||
app:srcCompat="@android:drawable/ic_dialog_email"/> |
||||
|
||||
</androidx.drawerlayout.widget.DrawerLayout> |
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
||||
|
@ -1,26 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<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" |
||||
android:layout_height="match_parent" |
||||
tools:context=".ui.main.MainActivity"> |
||||
|
||||
<io.legado.app.ui.widget.TitleBar |
||||
android:id="@+id/title_bar" |
||||
android:layout_width="match_parent" |
||||
android:fitsSystemWindows="true" |
||||
android:layout_height="wrap_content"/> |
||||
|
||||
<include layout="@layout/content_main"/> |
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton |
||||
android:id="@+id/fab" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="bottom|end" |
||||
android:layout_margin="@dimen/fab_margin" |
||||
app:srcCompat="@android:drawable/ic_dialog_email"/> |
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
Loading…
Reference in new issue