public class SectionsRecyclerView extends SwipeRefreshLayout implements HasLithoViewChildren
RecyclerSpec
provides such as sticky header
and pull-to-refreshModifier and Type | Class and Description |
---|---|
static interface |
SectionsRecyclerView.SectionsRecyclerViewLogger
Pass to a SectionsRecyclerView to do custom logging.
|
Constructor and Description |
---|
SectionsRecyclerView(Context context,
RecyclerView recyclerView) |
Modifier and Type | Method and Description |
---|---|
RecyclerView |
getRecyclerView() |
LithoView |
getStickyHeader() |
boolean |
hasBeenDetachedFromWindow() |
void |
hideStickyHeader() |
boolean |
isStickyHeaderHidden() |
void |
obtainLithoViewChildren(java.util.List<LithoView> lithoViews) |
protected void |
onDetachedFromWindow() |
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
void |
requestDisallowInterceptTouchEvent(boolean disallowIntercept) |
void |
resetItemAnimator() |
void |
setHasBeenDetachedFromWindow(boolean hasBeenDetachedFromWindow) |
void |
setItemAnimator(ItemAnimator itemAnimator) |
void |
setOnTouchListener(OnTouchListener listener) |
void |
setSectionsRecyclerViewLogger(SectionsRecyclerView.SectionsRecyclerViewLogger lithoViewLogger) |
void |
setStickyComponent(ComponentTree component) |
void |
setStickyHeaderVerticalOffset(int verticalOffset) |
void |
showStickyHeader() |
public SectionsRecyclerView(Context context, RecyclerView recyclerView)
public void setSectionsRecyclerViewLogger(SectionsRecyclerView.SectionsRecyclerViewLogger lithoViewLogger)
public RecyclerView getRecyclerView()
public void setStickyComponent(ComponentTree component)
public LithoView getStickyHeader()
public void setStickyHeaderVerticalOffset(int verticalOffset)
public void showStickyHeader()
public void hideStickyHeader()
public boolean isStickyHeaderHidden()
public void setItemAnimator(ItemAnimator itemAnimator)
public void resetItemAnimator()
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
protected void onDetachedFromWindow()
public boolean hasBeenDetachedFromWindow()
public void setHasBeenDetachedFromWindow(boolean hasBeenDetachedFromWindow)
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
public void setOnTouchListener(OnTouchListener listener)
public void obtainLithoViewChildren(java.util.List<LithoView> lithoViews)
obtainLithoViewChildren
in interface HasLithoViewChildren