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

The Archive Base Latest Questions

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

Is it possible to make a background stretch over the whole ListView, instead of

  • 0

Is it possible to make a background stretch over the whole ListView, instead of just staying on a fixed position?

I remember in CSS when making websites you could make the background-attachment fixed for a background to stay the same place when scrolling, I am trying to archive the opposite of this, making the background follow the data when you scroll down. Is there such a thing for ListView?

  • 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-27T01:51:59+00:00Added an answer on May 27, 2026 at 1:51 am

    Using a stock ListView to do what you want would not be possible.

    ListView only displays a few rows at a time in order to save on View creation/management/etc. that could bog the system down. As a result, the ListView doesn’t even know the total height of itself – it doesn’t render a row until that row is visible, and rows can vary in height. If it doesn’t even know its own height, how could it have a background that spans the entirety of it?

    That said, your idea of using a ScrollView would be possible. However, you would then be losing out on ListView’s optimization – if you only had few rows, then this isn’t a big deal; but if you’re talking about dozens of rows (or more), then your app may seriously chug. Also, you don’t get ListView’s framework, which is geared towards making an easier row-based UI.

    It would be possible to write your own ListView subclass (or custom ListView) that can calculate its total height (so long as you know that each row is of a fixed height), then draw the background accordingly. That is probably what I’d do if I was required to do what you describe and had too many rows to just stuff into a ScrollView comfortably.

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

Sidebar

Related Questions

Is it possible, using CSS only, to make the background of an element semi-transparent
Is it possible to make just the background semi transparent? If I change the
Is it possible to make the background image of a containing div show over
Is it possible, in Java, to make a JPanel skip drawing its background thus
Is it possible to make such buttons ( http://img225.imageshack.us/img225/6452/buttonslw9.jpg ) using CSS? It should
is it possible to make <td colspan=2> element have 2-column background? I mean that
Is it possible to make a style background-image binding? I tried this code: <div
How I make a background transparent on my form? Is it possible in C#?
Example: http://jsfiddle.net/NBWmU/1/ I'm using the following CSS to make the background of my div
Is it possible to make the background of an OpenGL ES layer transparent so

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.