在布局文件的 androidx.fragment.app.FragmentContainerView 中添加 android:layout_marginBottom="?attr/actionBarSize" ,修改后大致如下:
<androidx.fragment.app.FragmentContainerView
...
android:layout_marginBottom="?attr/actionBarSize"
.../>
本文介绍如何在Android布局文件中使用FragmentContainerView,并设置其底部边距为ActionBar的高度,确保组件与ActionBar之间的间距适配。
在布局文件的 androidx.fragment.app.FragmentContainerView 中添加 android:layout_marginBottom="?attr/actionBarSize" ,修改后大致如下:
<androidx.fragment.app.FragmentContainerView
...
android:layout_marginBottom="?attr/actionBarSize"
.../>
2732

被折叠的 条评论
为什么被折叠?
