facebookarchive / rebound

A Java library that models spring dynamics and adds real world physics to your app.
http://facebook.github.io/rebound/
Other
5.43k stars 818 forks source link

Rebound for RecyclerView. #74

Open chthai64 opened 8 years ago

chthai64 commented 8 years ago

Thanks for the library, it is awesome. I'm trying to use rebound for RecyclerView so that it can over scroll and bounce back just like the SpringScrollView in the playground-example. My implementation is working so far, but the way I do is using a wrapper adapter class and add a transparent header and footer rows into the original adapter. Then I use rebound library to handle the case when the header or footer row is visible. I'm not sure if it is the best way to do it or there is a better way. Can you give me an opinion or suggestion about that? Thanks.