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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:42:38+00:00 2026-05-29T08:42:38+00:00

I have a ListView with each item being a custom layout with multiple Views

  • 0

I have a ListView with each item being a custom layout with multiple Views (including a large image of ~445×250, a smaller image of ~40×40, etc). While scrolling, the animation is extremely choppy.

Can someone recommend how I can improve performance?

One approach I tried was to eliminate any transparency in the images being used. This did improve it slightly, though there is still a noticeable lag when before a new item scrolls into view.

Update:
Here’s the View heirarchy for the custom layout (for each item) – http://pastie.org/3333903

  • 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-29T08:42:39+00:00Added an answer on May 29, 2026 at 8:42 am

    Looking at the layout provided, there are a few things that may cause performance issues:

    • Your View Hierarchy has a depth of 4. You should make your View Hierarchy as shallow as possible. Consider using a RelativeLayout/TableLayout where possible instead of nested LinearLayouts.
    • You have nested weights. Try to avoid having nested weighted views.
    • You have a lot of views for a row item. Remember the purpose of a ListView – if your rows start becoming complex, it may be a sign to look at something else to display this information.
    • A GestureOverlayView seems a bit heavy for a ListView row item. Is this necessary? Considering ListViews a scrollable by touch, having custom gestures on row items may be a bit confusing.

    You can also try using android:persistentDrawingCache="scrolling" and the ViewHolder pattern to squeeze out a bit more performance.

    If you download the latest version of ADT, it will also guide you in optimising your layouts.

    Apart from layout optimisations, minimal work should be done in the getView method of your ListAdapter.

    Additionally, you can use android:hardwareAccelerated="true" to take advantage of hardware in Android 3.0+.

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

Sidebar

Related Questions

I currently have a custom listview with two rows of text in each item,
I have a ListView in which each item has a complex layout that contains,
Basically, I have a custom ListView in which each item looks like: <LinearLayout> <Table>
I currently have a custom listview where each item on the list contains two
I have a listview with a custom adapter. Each listview item has an ImageView.
I have a listView, where each row has a button in the row layout.
I have a listview with 200 items. I use a custom view for each
I have a listview where each item correlates to an instance of an item
I have a listview with custom rows and that extends SimpleAdapter. Each row consist
I have a listview that has multiple entries and each entry has 2 subitems.

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.