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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:15:51+00:00 2026-05-27T23:15:51+00:00

The getView operation of my ListActivity takes a long time to execute, because each

  • 0

The getView operation of my ListActivity takes a long time to execute, because each row of my list takes a long time.

How can I add a progress bar to start before the list begins to populate and end when it is finished populating?

Alternatively, is it possible to have the getView operations performed asynchronously in the background somehow, so that my ListActivity take ages to load?

  • 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-27T23:15:52+00:00Added an answer on May 27, 2026 at 11:15 pm

    The goal of the design should be that the getView should not take too much time. If the getView takes too much time, then it means you are blocking the UI.

    I would suggest to use a worker thread to fetch the data for the list and populate the adapter. GetView should quickly generate the view and return.

    You could use AsyncTask to show the progress as the list data is fetched.

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

Sidebar

Related Questions

I guess getView() is called for each item of the list, but my question
in extjs 3.3.0, i can do that like this var row = grid.getView().getRow(0); var
I made a custom Listview (Without overriding getView() method) with each item in a
I am using custom row view in ListView widget. I am having getView method
When a list is shown and scrolled around, ListAdapter.getView() either creates a new list
The first time getView is called, all is fine. The secon time, vi.getTag() returns
I add new CheckBox in getView() (PlanAdapter class) public View getView(int position, View convertView,
In my custom ListAdapter, the first time that GetView() is called, convertView is passed
So I'm getting an error because my Custom ArrayAdapter getView method provides a position
Can anyone please explain what's the difference between the two kinds of getView() implementation?

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.