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

  • Home
  • SEARCH
  • 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 4051322
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:10:49+00:00 2026-05-20T14:10:49+00:00

I have a list activity that implements Runnable so that my data fetch is

  • 0

I have a list activity that implements Runnable so that my data fetch is done with a progress bar. The data is pulled from a web service. Right now, I go get all of the users, but I would like to change it so it retrieves the users one page at a time, instead of all at once.

public class ActiveUsersActivity extends ProtectedListActivity implements Runnable {
    ProgressDialog progress;
    ArrayList<UserModel> users;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        progress = ProgressDialog.show(ActiveUsersActivity.this, "", "Loading...", true);

        Thread thread = new Thread(ActiveUsersActivity.this);
        thread.start();
    }

    @Override
    public void run() {
    //Get user data
    users = MyService.GetAllUsers();
    }
}

So, the modifications I need to make are to change run to get one page at a time. That is easy enough, but my problem lies in how to do the actual horizontal swipe. Ideally, I would like to make the list slide left or right like the home screens do when you do a swipe. Any ideas on how to do this?

  • 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-20T14:10:50+00:00Added an answer on May 20, 2026 at 2:10 pm

    As for the swiping, have you looked at the GestureDetector? Check out the OnGestureListener and its onFling.

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

Sidebar

Related Questions

I have an Activity that retrieves data from a web service. This data is
I have a web service that returns a super simple list of objects MyObject[]
I have an activity which shows 3 random images from JSON data off the
I have a list of objects called Activity: class Activity { public Date activityDate;
I have an activity which shows some List entries. When I click on a
i have list of rows that user select and i want to delete them,
In one of my Activities I have a ListView that displays a list of
My activity implements OnTouchListener and it have one ListView inside it. When user touch
Im trying to implement an activity that uses ExpandableListView and I have gotten so
I have list view with custom row layout (list_row.xml) that contains CheckBox element: <TableLayout

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.