fix: 解决多余顶部空间问题

This commit is contained in:
niushuai233 2022-10-13 16:47:14 +08:00
parent 2f97f11e83
commit 4a53da88e1
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/id_am_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?attr/actionBarSize">
android:layout_height="match_parent">
<fragment
android:id="@+id/main_nav_host_fragment_activity"

View File

@ -10,8 +10,9 @@
android:id="@+id/nav_device_fragment_textview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textAlignment="center"
android:background="@color/teal_200"
android:text="@string/hello_blank_fragment"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"