public class LithoRecylerView extends RecyclerView implements HasPostDispatchDrawListener
RecyclerView
that allows to add more features needed for @RecyclerSpec
Modifier and Type | Class and Description |
---|---|
static interface |
LithoRecylerView.TouchInterceptor
Allows to override
onInterceptTouchEvent(MotionEvent) behavior |
Constructor and Description |
---|
LithoRecylerView(Context context) |
LithoRecylerView(Context context,
AttributeSet attrs) |
LithoRecylerView(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(LithoRecylerView.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 LithoRecylerView(Context context)
public LithoRecylerView(Context context, AttributeSet attrs)
public LithoRecylerView(Context context, AttributeSet attrs, int defStyle)
public void setTouchInterceptor(LithoRecylerView.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