ebarrenechea / header-decor

A couple of sticky header decorations for android's recycler view.
Apache License 2.0
878 stars 159 forks source link

protected hasHeader(int position) #39

Closed MarcusWolschon closed 7 years ago

MarcusWolschon commented 8 years ago

private boolean StickyHeaderDecoration::hasHeader(int position) should be protected,

so subclasses can define specific items (such as empty-views, special items or footers) to have no header.

ebarrenechea commented 8 years ago

@MarcusWolschon I didn't think too much about that when first coding the decoration but it sounds like the correct approach to take. Would you feel comfortable creating a pull request with those changes? I can take care of if it not.

starkej2 commented 7 years ago

This behavior can now be accomplished by returning StickyHeaderDecoration.NO_HEADER_ID from the StickyHeaderAdapter.getHeaderId(position) method for items that you don't want to have a header.

starkej2 commented 7 years ago

Resolved in #48