You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for this library to be simple, we shouldn't make the user use a separate API if they are using a different LayoutManager. Let's get the LayoutManager from the parent RecyclerView in ItemDecoration.getItemOffsets and switch behavior based on it. This will allow us to fold the following implementations together:
Moving forward with just three ItemDecorations will enhance the usefulness of Simple Item Decoration as a library, rather than a collection of samples.
The text was updated successfully, but these errors were encountered:
In order for this library to be simple, we shouldn't make the user use a separate API if they are using a different LayoutManager. Let's get the LayoutManager from the parent RecyclerView in
ItemDecoration.getItemOffsets
and switch behavior based on it. This will allow us to fold the following implementations together:DividerItemDecoration
<-GridDividerItemDecoration
StartOffsetItemDecoration
<-GridTopOffsetItemDecoration
EndOffsetItemDecoration
<-GridBottomOffsetItemDecoration
Moving forward with just three ItemDecorations will enhance the usefulness of Simple Item Decoration as a library, rather than a collection of samples.
The text was updated successfully, but these errors were encountered: