Search code examples
androidlistviewandroid-listviewasp.net-web-apiandroid-scrollview

Android Dynamically Load ListView


  • I am adding item in ListView using ArrayAdapter.
    • First display 15 item in the ListView.
    • Scroll to bottom it must fetch and display next 15 content from web API.

Give some idea.


Solution

  • There is a tutorial of lazy loading with image. You should check that out

    http://ballardhack.wordpress.com/2010/04/05/loading-remote-images-in-a-listview-on-android/

    Here is some demo of lazy listview from GitHub.

    https://github.com/thest1/LazyList

    Hope those can help !!

    [Credit go to original author of code and tutorial]