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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:10:37+00:00 2026-06-06T11:10:37+00:00

I have about 700 items to display in the grid view. On a Samsung

  • 0

I have about 700 items to display in the grid view.

On a Samsung Galaxy Tab 10.1 this is not a problem: it has enough memory.
On a HTC Explorer the heap is overflown.

So I want to load data dynamically regarding current scroll position (N rows for screen + 5 rows as a tail). And I want to show a scrollbar which represents the position in total rows. But I don’t want to draw items that I don’t see.

In other words, I want to create something similar to UITableView in iOS. How can I do this?

  • 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-06T11:10:41+00:00Added an answer on June 6, 2026 at 11:10 am

    Android Adapter works in a similar way to iOS UITableViewDataSource. You need to call

    public void setAdapter (ListAdapter adapter)
    

    on your GridView and then that Adapter will get call backs like:

    public int getCount ()
    public View getView (int position, View convertView, ViewGroup parent)
    

    It’s important that you reuse convertView the same way you dequeue a UITableViewCell in

     - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    

    If you do all that correctly, it will never try to load all the views at once, but only the ones currently displayed and you shouldn’t have memory problems any more.

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

Sidebar

Related Questions

I have an excel spreadsheet with about 700 entries. The names are listed as
I have a SQL script which is extremely large (about 700 megabytes). I am
I have about 20 grid views that I have to create. All of them
I work for a company that has a website with about 700,000 users, it
I have a program which receives data from unmanaged code about 500 to 700
I have honestly been working on this for about two weeks and researched as
I have updated this from the original post, now I can add/remove items but
I have a database of about 700 pictures but I want to create a
I have an Excel spreadsheet with 1 column, 700 rows. I care about every
I have a table like this CREATE TABLE values ( id int(10) auto_increment NOT

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.