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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:56:23+00:00 2026-06-02T17:56:23+00:00

I am an Android newbie and I am wondering what to do regarding a

  • 0

I am an Android newbie and I am wondering what to do regarding a big table I want to display.

Currently I am testing a TableLayout with 100 TableRows. The final table will have much more rows, in the order of the thousands.
Since TableLayout is a View, I wonder what is the correct, or recommended, approach in this case. To use a View (TableLayout) containing all the data I have, or dynamically add/delete rows in the viewable window, as the user scrolls up and down.

What are the pros and cons of the different approaches? Examples?

  • 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-02T17:56:26+00:00Added an answer on June 2, 2026 at 5:56 pm

    The clearest disadvantage to having them all on screen at the same time is that the OS essentially has to have all of your thousands of View objects in memory at the same time – VERY expensive, memory-wise.

    On the other hand, creation and destruction of views as you scroll is processor intensive and slows down the UI considerably.

    The primary alternative (and the one that android uses in its ListView control (Which is probably what you should use instead, by the way), is to only create enough views to fill the screen (plus a little padding on either side), and as one goes off the top, re-use it at the bottom, changing its properties rather than creating a whole new view.

    The above is complicated logic, though, and why reinvent the wheel? The List View control with a custom adapter should be more than capable of rendering the data like you’re attempting to do, and the hard work has already been done.

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

Sidebar

Related Questions

I am newbie in android .i want to develop an application which has the
I am newbie in android. I want to resize a byte array in function.
I am a newbie in android apps development. I was wondering which of the
I'm building an Android app, I'm a newbie and I was wondering what build
I am newbie to android development and currently I am studying the 3D animation
I'm a newbie Android App Developer, also new with xml. I was just wondering
[Android Newbie alert] I need to capture the contents of a WebView in a
Android newbie here. I'm using this tutorial to show some rows that I fetch
I have the following thing to achieve in Android(newbie). I have an xml which
Extreme Android developer newbie here...well, new to Android development, not development in general. I

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.