且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在CoordinatorLayout中删除多余的顶部空间-Android

更新时间:2023-12-03 17:40:52

您必须在活动布局中使用CoordinatorLayout. 然后在您的底部工作表布局中插入以下行:

You have to use CoordinatorLayout in your activity layout. Then in your bottom sheet layout insert these lines:

app:behavior_hideable="true"
app:behavior_peekHeight="Xdp"