public class MultiSelectManager.BandController extends RecyclerView.OnScrollListener
RecyclerView
and MultiSelectManager
. This class is responsible for rendering the band select
overlay and selecting overlaid items via MultiSelectManager.Constructor and Description |
---|
BandController() |
Modifier and Type | Method and Description |
---|---|
boolean |
handleEvent(Events.MotionInputEvent e) |
void |
handleLayoutChanged()
Handle a change in layout by cleaning up and getting rid of the old model and creating
a new model which will track the new layout.
|
boolean |
onBeforeItemStateChange(String id,
boolean nextState) |
void |
onScrolled(RecyclerView recyclerView,
int dx,
int dy)
Callback method to be invoked when the RecyclerView has been scrolled.
|
void |
onSelectionChanged(Set<String> updatedSelection) |
onScrollStateChanged
public boolean handleEvent(Events.MotionInputEvent e)
public void handleLayoutChanged()
public boolean onBeforeItemStateChange(String id, boolean nextState)
public void onScrolled(RecyclerView recyclerView, int dx, int dy)
RecyclerView.OnScrollListener
This callback will also be called if visible item range changes after a layout calculation. In that case, dx and dy will be 0.
onScrolled
in class RecyclerView.OnScrollListener
recyclerView
- The RecyclerView which scrolled.dx
- The amount of horizontal scroll.dy
- The amount of vertical scroll.