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