Twit 05 implements an infinite list

Does what it says on the tin :smile: 

![roundandround](https://cloud.githubusercontent.com/assets/3380092/3951658/91bdcee2-26d9-11e4-9b7e-e08b1a8ef48b.gif)

:+1:
On 19 Aug 2014 14:48, "Adam Brown" <notifications@github.com> wrote:

> In
> android/src/main/java/com/github/mecharyry/tweetlist/ScrollListener.java:
>
> > +    }
> > +
> > +    @Override
> > +    public void onScrollStateChanged(AbsListView view, int scrollState) {
> > +
> > +    }
> > +
> > +    @Override
> > +    public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
> > +        int halfWay = totalItemCount / 2;
> > +        int distanceFromEnd = firstVisibleItem + halfWay;
> > +
> > +        boolean overHalfWay = distanceFromEnd >= totalItemCount;
> > +        boolean atEnd = totalItemCount != totalLoadedCount;
> > +
> > +        boolean loadMore = atEnd && overHalfWay;
>
> in my head, being atEnd means you are 'overHalfWay'
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/Mecharyry/Tweet-Manager/pull/14/files#r16414812>.
>