问一下Toolbar跑到状态栏去了,如何解决? Android

2025-04-24 18:57:34
推荐回答(1个)
回答1:

在布局文件中添加 android:fitsSystemWindows="true"
如下所示


android:orientation="vertical" android:layout_width="match_parent"

android:fitsSystemWindows="true"

android:layout_height="match_parent">