Open kaloglu opened 6 years ago
I have a similar issue with a RecyclerView in a BottomSheet. LinearLayoutManager works like a charm for scrolling but StickyHeaderLayoutManager doesn't enable scrolling down without scrolling down the BottomSheet.
By modifying the StickyHeaderLayoutManager
slightly to subclass the LinearLayoutManager
rather than the RecyclerView.LayoutManager
, I got the behavior I wanted in a BottomSheet
🎉
I might play around with creating a PR for a fix based on this, but if anyone else wants to jump on it then by all means, do.
I have the exact same problem as @robotsquidward , have you perhaps created a PR?
@ibrcic I have not created a PR yet unfortunately. But please go for it if you are able to!
@ibrcic I have not created a PR yet unfortunately. But please go for it if you are able to!
I would absolutely love to see this. Please give it a go.
I gave it a go some time ago, essentially I tried extending LinearLayoutManager and initially it seemed to work but it seems that it breaks some other things, so I gave up since I am not familiar enough with LayoutManagers...
If you want to send an example project my way I'd be interested because I might be able to improve it and integrate it. But I understand it's not PR-ready.
Auto resizing is not working so it's disabling keyboard up. And same issue with wrap_content height even though recyclerview was supposed to be resized automatically.
When I use StickyHeaderLayoutManager, it conflict scrolling between recyclerview and bottomsheet...
Nested Recyclerview in CardView work with LinearLayoutManager but does not work with StickyHeaderLayoutManager.