aravindItachi / AndroidGoogleImageSearch

Android App for the google Image Search
0 stars 0 forks source link

Endless Scrolling Issues !! #1

Open aravindItachi opened 9 years ago

aravindItachi commented 9 years ago

Hi I have a problem with Endless Scrolling Feature. I followed the Documents and Stack Overlfow. But failed to implement. I can load the Images but It wont scroll. It will be great If you can help me with this. /cc @thecodepath /cc @nesquena

The Java file: https://github.com/aravindItachi/AndroidGoogleImageSearch/blob/master/src/com/yahoo/akv/gridimagesearch/listeners/EndlessScrollListener.java

nesquena commented 9 years ago

Read helpful hints for the assignment on the portal in the hints section. Hint: don't clear the adapter of items when paginating, instead append new items.

aravindItachi commented 9 years ago

@thecodepath /cc @nesquena : Thanks for the help. It worked . But it works only once when I use the Scroll Bar once it is fine . But after that the consequent searches the event is not getting triggered . Any reason , you can see that in the GIF I attached.

nesquena commented 9 years ago

Can you try clearing through the adapter here: https://github.com/aravindItachi/AndroidGoogleImageSearch/blob/master/src/com/yahoo/akv/gridimagesearch/activity/GridImageSearchActivity.java#L128 and see if that helps? If not, try reattaching the scroll listener every time a new search goes out.