Open philipgiuliani opened 8 years ago
Do you call scrollToPosition in onCreateView ???
mRecyclerView.scrollToPosition(4);
mRecyclerView.addOnPageChangedListener(new RecyclerViewPager.OnPageChangedListener() {
@Override
public void OnPageChanged(int prev, int position) {
Log.d("Page changed");
}
});
@nguyenkhiem doesn't call OnPageChangedListener sometimes,why?
Yeah, I have the same problem. OnPageChanged does not get called sometimes when I swipe through items.
I'm using version 1.1.0 and i noticed that
scrollToPosition
does not callOnPageChanged
.It works when i manually change the position