I have a RecyclerView inside a fragment. I need to be notified of scroll changes, so I added a callback to the ScrollChange
event (which corresponds to the SetOnScrollChangeListener
in classical Android API):
private void RecyclerViewScrollChange(object sender, View.ScrollChangeEventArgs e)
{
int deltaY = e.ScrollY - e.OldScrollY;
}
The problem is that deltaY is always zero, because both ScrollY and OldScrollY are always zero. I am using vertical linear layout in the recycler view's layout manager, so the vertical dimension ought to be updated. What can cause this problem?