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 6983093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:22:25+00:00 2026-05-27T18:22:25+00:00

I was just wondering how does data loads for Twitter and Facebook apps.. Like

  • 0

I was just wondering how does data loads for Twitter and Facebook apps..

Like when you reach end of page you’re still interacting with UI and it shows the further data is loading.. How is this programatically done.

To be more clear, when you scroll down your news feed when you reach a point it shows a circle depicting further data is loading and then when further new feed is available you can scroll through that as well.. I hope I’m clear enough.. I just want to know how is such scenario implemented.. Is there any example?

  • 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-27T18:22:26+00:00Added an answer on May 27, 2026 at 6:22 pm

    Here are few links which might get you through it.

    http://github.com/commonsguy/cwac-endless

    Android Endless List

    http://www.androidguys.com/2009/10/21/tutorial-autogrowing-listview/

    A sample logic from the link two,

    public class Test extends ListActivity implements OnScrollListener {
    
    Aleph0 adapter = new Aleph0();
    
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setListAdapter(adapter); 
        getListView().setOnScrollListener(this);
    }
    
    public void onScroll(AbsListView view,
        int firstVisible, int visibleCount, int totalCount) {
    
        boolean loadMore = /* maybe add a padding */
            firstVisible + visibleCount >= totalCount;
    
        if(loadMore) {
            adapter.count += visibleCount; // or any other amount
            adapter.notifyDataSetChanged();
        }
    }
    
    public void onScrollStateChanged(AbsListView v, int s) { }    
    
    class Aleph0 extends BaseAdapter {
        int count = 40; /* starting amount */
    
        public int getCount() { return count; }
        public Object getItem(int pos) { return pos; }
        public long getItemId(int pos) { return pos; }
    
        public View getView(int pos, View v, ViewGroup p) {
                TextView view = new TextView(Test.this);
                view.setText("entry " + pos);
                return view;
        }
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering why people like case sensitivity in a programming language? I'm not trying
Just wondering should I encode all the data before I put in to the
does anybody know some free tool for synchronization MySQL database (data and structure) like
gcc 4.6.0 What does binary data look like? Is it all 1's and 0's.
Just wondering what the best way to store user login data on successful login
Just wondering, if I want to create a class that does something and I
Just wondering will it be possible to passing a value from one page (window
I was just wondering what do you think would be the best C# data
just wondering if anyone knows of a truly restful Put/delete implementation asp.net mvc preview
Just wondering if a .NET app can be compiled down to native machine code

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.