ListView/ListAdapter paging

Posted by synic on Stack Overflow See other posts from Stack Overflow or by synic
Published on 2010-04-11T20:33:40Z Indexed on 2010/04/11 20:43 UTC
Read the original article Hit count: 441

Filed under:

I'm trying to implement paging in a custom ListAdapter. Right now I'm just making the request for the next page when the last item in the ListView becomes visible, by checking in getView() if position is >= the size of ListAdapter.getCount().

It works fine, but I'm wondering if there's a better way (or a different way) that will only make the request once the last item in the list is actually visible to the user. Anyone know of a way?

© Stack Overflow or respective owner

Related posts about android