Closed mobilekosmos closed 6 years ago
You do not need TopSnappedStickyLayoutManager. It makes scrollToPosition
call scrollToPositionWithOffset
so I can guarantee the item position that is being scrolled to will be at the top of the list (this is important for UI tests). The default behavior of scrollToPosition
only ensures the item is visible, it will not bring it to the top of the list.
Maybe? It's changeable so I'm not too concerned. I don't want to change it until a major release because it would be changing default behavior which some may not expect.
The sticky header view is added to the RecyclerView's parent ViewGroup, so the RecyclerView must have a parent that positions views based on coordinates. CardView is a FrameLayout.
The entire point of this project was to reduce the amount of classes needed to be extended. In most cases, no one has to extend any class unless they want custom LayoutManager behavior (in which case they would have had to extend that class even without the library). This library will never require a custom adapter class to be created.