gabrielemariotti / RecyclerViewItemAnimators

An Android library which provides simple Item animations to RecyclerView items
3.05k stars 659 forks source link

ViewAnimation assumes I'm using a Linear Layout Manager #13

Open bruno1308 opened 7 years ago

bruno1308 commented 7 years ago

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?