RecyclerViewItemAnimators
RecyclerViewItemAnimators copied to clipboard
ViewAnimation assumes I'm using a Linear Layout Manager
Line #270 and #271 of ViewAnimation.java:
int lastVisiblePosition = ((LinearLayoutManager)mRecyclerView.getLayoutManager()).findLastCompletelyVisibleItemPosition();
It tries to cast my layout manager to a linear layout, which is not the case, since I'm using StaggeredGridLayoutManager.
Am I missing something or the lib does not support the use of another type of Layout Manager?