public class LithoRecyclerView extends RecyclerView implements HasPostDispatchDrawListener
RecyclerView
that allows to add more features needed for @RecyclerSpec
Modifier and Type | Class and Description |
---|---|
static interface |
LithoRecyclerView.TouchInterceptor
Allows to override
onInterceptTouchEvent(MotionEvent) behavior |
Constructor and Description |
---|
LithoRecyclerView(Context context) |
LithoRecyclerView(Context context,
AttributeSet attrs) |
LithoRecyclerView(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatchDraw(Canvas canvas) |
boolean |
onInterceptTouchEvent(MotionEvent ev) |
void |
registerPostDispatchDrawListener(PostDispatchDrawListener listener) |
void |
setTouchInterceptor(LithoRecyclerView.TouchInterceptor touchInterceptor)
Set TouchInterceptor that will be used in #onInterceptTouchEvent(android.view.MotionEvent) to
determine how touch events should be intercepted by this
RecyclerView |
void |
unregisterPostDispatchDrawListener(PostDispatchDrawListener listener) |
public LithoRecyclerView(Context context)
public LithoRecyclerView(Context context, AttributeSet attrs)
public LithoRecyclerView(Context context, AttributeSet attrs, int defStyle)
public void setTouchInterceptor(LithoRecyclerView.TouchInterceptor touchInterceptor)
RecyclerView
public boolean onInterceptTouchEvent(MotionEvent ev)
protected void dispatchDraw(Canvas canvas)
public void registerPostDispatchDrawListener(PostDispatchDrawListener listener)
registerPostDispatchDrawListener
in interface HasPostDispatchDrawListener
public void unregisterPostDispatchDrawListener(PostDispatchDrawListener listener)
unregisterPostDispatchDrawListener
in interface HasPostDispatchDrawListener