public class NacCardTouchHelper
extends androidx.recyclerview.widget.ItemTouchHelper
Modifier and Type | Class and Description |
---|---|
static interface |
NacCardTouchHelper.Adapter
Adapter for when an alarm card swipe button is selected.
|
static class |
NacCardTouchHelper.Callback
Handle callback events when swiping card.
|
Modifier and Type | Field and Description |
---|---|
protected androidx.recyclerview.widget.RecyclerView |
mRecyclerView
RecyclerView.
|
Constructor and Description |
---|
NacCardTouchHelper(NacCardTouchHelper.Callback callback) |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Reset the touch helper.
|
void |
setRecyclerView(androidx.recyclerview.widget.RecyclerView rv)
Set the RecyclerView to help on.
|
attachToRecyclerView, getItemOffsets, onChildViewAttachedToWindow, onChildViewDetachedFromWindow, onDraw, onDrawOver, startDrag, startSwipe
protected androidx.recyclerview.widget.RecyclerView mRecyclerView
public NacCardTouchHelper(NacCardTouchHelper.Callback callback)