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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:53:35+00:00 2026-05-13T05:53:35+00:00

I am using complex list item as following to lazy upload image i am

  • 0

I am using complex list item as following to lazy upload image i am loading every list item’s image in separate asyntask so that it won’t hang the application while loading image.

problem comes when i scroll down the list new lisitems image had replace image effect when i drill down i found that

for example if by default 5 listitems fit onto the screen when i scroll down next displayed listem is actually the recycle of the previous listitem which was displaying thats why also containing the image of the previous listitem untill new image loaded, after new image loaded from web image get replaced and user found replace image effect when doing scroll up or scroll down every time images are getting replaced due to recycling…

Is there a way i can ask android to do not recycle the listitem when i scroll down or up so that it will not have replace image effect.

any good suggestion is appriciated

alt text http://www.freeimagehosting.net/uploads/8237cbd584.jpg

  • 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-13T05:53:35+00:00Added an answer on May 13, 2026 at 5:53 am

    My understanding is that you use getView() method from your adapter to provide your own layout for list item. So probably you have something like this:

    public View getView(int position, View convertView, ViewGroup parent) {
    
            if(null == convertView){
                convertView = mInflater.inflate(R.layout.row, null);
                //...               
            }
            //... setting new values for your widgets
            return convertView
        }
    

    If that is the case, then it is your call to recycle items. Such implementation prevents garbage collector to be called to often, but if it’s not a problem and you can bear with GC, then you can just get rid of if(null==convertView) and construct your item from the scratch – every time getView method is invoked.

    But probably that is not a good idea, it would be better if you retrieve your image widget from recycled item, set some temporary image and then start your async task to download the proper image.
    Regads!

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

Sidebar

Related Questions

My problem is a bit more complex than using the following simple JavaScript code:
Using the following Webservice definition using aClientArgs as a complex type: [System.Web.Script.Services.ScriptService] public class
Given the following markup <ul class=list> <li>first item</li> ​<li class=item>second item</li> <li>third item</li> </ul>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
I have a List of complex objects containing other objects within that I give
I have a basic ViewModel with a property that is a List of complex
I have a rather complex model that I am using to render a form
I have a collection that contains a list of complex objects, SubCategory. SubCategory contains
I'm using WCF to return a list of complex objects returned from SQL Server
I have a simple list of items that needs to be printed using Cocoa.
We've been using a complex type CreditCardTransaction associated with our purchase orders. It really

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.