rajeesht / tc

0 stars 0 forks source link

A twitter client that tweets #1

Open rajeesht opened 8 years ago

rajeesht commented 8 years ago

/cc @codepathreview @codepath I have not been able to figure out how endless scrolling works. A video with example will help. tc

nesquena commented 8 years ago

@rajeesht did you see Tip # 5 http://courses.codepath.com/courses/intro_to_android/unit/2#!hints? What in particular did you have issues with?

rajeesht commented 8 years ago

I am having trouble on how to relate the parameters for EndlessScrollListener::onLoadMore with tweets in current view. As I understand app need to determine the tweet id for tweet that is on the visibleThreshold and fetch tweets that are older than that id.

nidhi1608 commented 8 years ago

You just need to determine the offset once you reach the bottom of your feed and call the home timeline endpoint by passing in this id as the value for PARAM_MAX_ID. Let me know if you have any more questions.

rajeesht commented 8 years ago

Do you have a working example that you can share?