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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:26:36+00:00 2026-06-03T10:26:36+00:00

I have a list adapter which shows a large photo in each row. I’m

  • 0

I have a list adapter which shows a large photo in each row. I’m fetching the bitmap off the disk in a thread in the ListAdapter.getView() method. This works fine, but it’s slightly annoying that when the user is scrolling, they’ll see the top of a new row coming on screen with the empty ImageView. The thread to read the bitmap off disk completes pretty quickly and then the redraw happens.

Is there a good pattern in the ListAdapter world to signal that the “next” row is in danger of coming onto screen momentarily? Ideally I’d like to start a thread to load the bitmap for this invisible row and get the bitmap into my memcache, that way if the user does scroll to this cell, the bitmap will already be loaded.

I suppose I’d need to know that (1) the user is scrolling downwards and (2) the top edge of the next invisible row is approximately 20 pixels or some value away from being visible.

Thanks

  • 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-03T10:26:37+00:00Added an answer on June 3, 2026 at 10:26 am

    Register an AbsListView.OnScrollListener; you will be notified for the scrolling state of the list and you will also be given the current visible items. Combine these two parameters and it should be simple for you to decide whether you need to load “next” bitmaps or not.

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

Sidebar

Related Questions

I have a listview connected to a custom array adapter. This list shows information
I have implemented an adapter for my ListView which extends BaseAdapter. My list items
I have a List and each entry has a dynamic count of attributes which
I have wrote an adapter for the gridView to display photo which is download
I have list view and its adapter stored as global variables. I am not
I have a ListView set with a adapter. This adapter receive a list of
I have this test [Test] public void SaveInventoryItemLoad_Will_Call_WCF_Service_SaveInventoryItemLoad() { adapter.SaveInventoryItemLoad(new List<InventoryItemLoadProxy>()); itemMasterBusinessClientMock.Verify(x => x.SaveInventoryItemLoad(It.IsAny<List<InventoryItemLoadProxy>>()),
I have List I want to sort Desc by Priority, which is int and
In my Android application, I have a simple list view with adapter. There's a
I have the below code which is suppose to show a list of contact

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.