Skyscraper
Skyscraper

Reputation: 11

Button under RecyclerView in BottomSheetDialogFragment is not showing properly (when STATE_COLLAPSED)

I have fragment inherited of BottomSheetDialogFragment. It's layout is ConstraintLayout and consist of:

My expectation is to show fragment with height by content + field for new address + button in both behavior state (STATE_COLLAPSED and STATE_EXPANDED)

When I open this fragment in STATE_EXPANDED behavior, all shows correct: screenshot STATE_EXPANDED behavior

When I open this fragment in STATE_COLLAPSED behavior,button and editText doesn't appear: screenshot STATE_COLLAPSED behavior

I tried to bind and unbind RecyclerView to LinearLayout(id/addNewAddress) but in doesn't help.

Does anyone have any ideas how to achieve this behavior? to make the button appear in STATE_COLLAPSED?

I will be very grateful for the help!

Upvotes: 1

Views: 592

Answers (0)

Related Questions