lucasr / smoothie

[DEPRECATED] Easy async loading for Android's ListView/GridView
985 stars 163 forks source link

Smoothie items preload on listview in transcript mode #9

Open bennyk opened 11 years ago

bennyk commented 11 years ago

Does Smoothie made assumption that the listview has to be operated in non transcript mode in order for the preload logics to function properly?

http://developer.android.com/reference/android/widget/AbsListView.html#setTranscriptMode(int)

In my testing, it seems that my listview missed some preloading when I scrolling up the listview. In transcript mode we usually scroll up more than scrolling it down.

This seem to be more like a question than issue :-)

Thanks

lucasr commented 11 years ago

@bennyk Yep, currently Smoothie works with the assumption that scrolling down is the most common use case. Maybe add a Builder option to reverse loading order? I'd prefer to avoid depending on ListView-specific API to detect that automatically as Smoothie is meant to be used with GridView too.