Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7161159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:31:12+00:00 2026-05-28T13:31:12+00:00

I have seen some ListView dynamic growing implementations which use OnScrollListener. I would like

  • 0

I have seen some ListView dynamic growing implementations which use OnScrollListener.

I would like to know, are there any more elegant solutions? Doesn’t ListView itself request more data from the Adapter if Adapter says there are more items available?

After all, the ListView creates its views on demand while scrolling, so why should I create my own scroll listener? Theoretically, I should be able to respond to ListView’s requests that are issued to the underlying Adapter while the ListView is being scrolled.
I could issue new data requests to the server (in batches) when ListView tells its Adapter that it needs more data for the next views, and when the loading completes, I could notify the ListView that the new data is available.

Has anyone tried such approach? Is there any source code available?

I need to implement some kind of endless list, but it actually will have a limited count of JSON records (about 500), and each record will have an unique Id, so I can cache them in a simple Map. I just would like to implement it using the most elegant and straight-forward method (preferably compatible with Android 1.6) avoiding various hacky solutions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:31:13+00:00Added an answer on May 28, 2026 at 1:31 pm

    After all, the ListView creates its views on demand while scrolling,
    so why should I create my own scroll listener?

    No listview doesn’t create the views. Its the adaptor that creates the views.

    You can try requesting for more data in getview function by keeping track of which views position is requested by the Listview. But the elegant solution will remain with onscrolllistener.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen some samples using var_dump, but I I would rather use a
I have seen some websites use the following tag: <meta type=title content=Title of the
I have seen some mails which has HTML content embedded in them. The content
I have seen some instances where people will say you have to use JS
I have seen some developers use the return statement in a catch block. Why/when
Today, I have seen some legacy code. In the destructor there is a statement
I have seen some iPhone apps in which they show first section of rows
I have seen some white papers, Cairngorm V2 is not always good to use
I have seen some code which uses the <= operator. Can you explain what
I have seen some apps with a messagebox which allows the user to copy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.