Fix edge to edge

This commit is contained in:
Light_summer
2024-10-04 12:37:42 +08:00
parent b9ab00fdae
commit 6c2e7aef65
2 changed files with 30 additions and 4 deletions

View File

@@ -2,11 +2,13 @@
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"
android:fitsSystemWindows="true">
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:id="@+id/appbar"
app:liftOnScroll="true"
app:liftOnScrollTargetViewId="@id/list"
android:layout_height="wrap_content">
<com.google.android.material.appbar.MaterialToolbar
@@ -23,6 +25,7 @@
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" >
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list"
android:clipToPadding="false"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />