gabrielemariotti / RecyclerViewItemAnimators

An Android library which provides simple Item animations to RecyclerView items

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ViewAnimation assumes I'm using a Linear Layout Manager

bruno1308 opened this issue · comments

commented

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?