【发布时间】:2022-02-02 01:22:10
【问题描述】:
下面还有来自已附加的同一个 sn-p 的代码文本。
<androidx.drawerlayout.widget.DrawerLayout 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:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
【问题讨论】:
-
它也不起作用.....错误只显示在这个项目上,但是当我创建新项目时,它似乎很好
-
我目前正在使用 AppCompat......相对布局......这对我的问题有影响吗??
-
你尝试过旧的无效缓存并重新启动
-
您是否检查了
drawer layout的结束标签,它必须关闭,这应该是根布局
标签: java android android-studio android-layout