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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:09:54+00:00 2026-06-01T02:09:54+00:00

I have a ListView with custom Adapter . To be honest, I have many

  • 0

I have a ListView with custom Adapter. To be honest, I have many of them at the same time on screen, and my Tegra 3 device started to lag, what made me really confused… I found than in each ListView‘s Adapter the getView() method is called for all visible rows every time any animations runs on screen. That gives me like few hundreds of calls per second! Digging more, most of these calls are due to measure() and onMeasure() calls of ListViews’ parents, and – this is tke key – they are useless, because all the layouts of my ListViews
have const size.

So my question is: how to eliminate these calls? Of course I want to leave proper calls alone (caused by adding items to Adapter and notifyDataSetChanged() ).

I’ve tried almost anything, but either the whole list doesn’t draw itself (when I overriden it’s onMeasure() and forced to returned const size without calling super.onMeasure()) or stops updating at some time.

  • 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-06-01T02:09:55+00:00Added an answer on June 1, 2026 at 2:09 am

    How you implemented the getView() method? If you implement it in the correct way there should be nearly no lagging.

    Check out this really really good video:

    • http://www.youtube.com/watch?v=wDBM6wVEO70
    • Slides: http://dl.google.com/googleio/2010/android-world-of-listview-android.pdf

    As Romain said, work with it not against it. Best is to leave measure() alone and focus on your adapter.

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

Sidebar

Related Questions

i have a ListView for which i have made a custom adapter which extends
I have a ListView with custom Adapter . I have to add at position
I have a ListView with a custom adapter, and an animation in getView() for
I have a ListView with a custom Adapter that extends ArrayAdapter. It's a ArrayAdapter
Here's my aproach: I have a custom ListView containing a custom Adapter containing two
I have a listview connected to a custom array adapter. This list shows information
I have a custom adapter for my ListView which has multiple TextViews. I want
I have a ListView with custom adapter which is populated from local sqlite database.
I have a Listview with custom cursor adapter. I'm trying to prevent input in
I have a listview with custom array adapter, the view allows the user to

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.