Make header decorations play well together

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2017-02-15 22:39:53 -08:00
parent d9b42c4369
commit 143fb1fe21
2 changed files with 9 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ public class StickyHeaderDecoration extends RecyclerView.ItemDecoration {
}
}
private int getHeaderTop(RecyclerView parent, View child, View header, int adapterPos,
protected int getHeaderTop(RecyclerView parent, View child, View header, int adapterPos,
int layoutPos)
{
int headerHeight = getHeaderHeightForLayout(header);
@@ -172,7 +172,7 @@ public class StickyHeaderDecoration extends RecyclerView.ItemDecoration {
}
}
private int getHeaderHeightForLayout(View header) {
protected int getHeaderHeightForLayout(View header) {
return renderInline ? 0 : header.getHeight();
}