TonicArtos / StickyGridHeaders

This project has been superseded by SuperSLiM, a layout manager for RecyclerView. I strongly recommend using SuperSLiM and not StickyGridHeaders.
http://tonicartos.com
Apache License 2.0
1.47k stars 442 forks source link

4 new methods for GridView #69

Closed bejibx closed 11 years ago

bejibx commented 11 years ago

4 new methods for StickyGridHeadersGridView.

I'm writing image gallery using your library with "preload image" feature. This means, that when user scroll down gallery, I'm preloading next few pictures to memory, so when user scrolls gallery again images load immediately and everything looks very smooth and cool. On scroll idle I need to know first and last gallery item so I can get next and previous images from my adapter and preload them to memory. That's about "getFirstVisibleAdapterPosition" and "getLastVisibleAdapterPosition".