我使用的是带有自定义布局的BottomSheetDialogFragment。我正在尝试进行以下设置:
<TextView> -> pinned to the top of the bottom sheet
<RecyclerView> -> wrap_content
<Button> -> pinned to the bottom of the bottom sheet
TextView和Button必须在任何时候都是可见的(粘滞的),而RecyclerView应该保持在中间,滚动而不遮挡其他视图。
到目前为止,这是我的布局:
<