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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:16:43+00:00 2026-05-16T01:16:43+00:00

I’m getting some very jerky scrolling while using the code below to create a

  • 0

I’m getting some very jerky scrolling while using the code below to
create a ListView from a Cursor. Is there something I’m doing wrong,
or any way to improve the performance of this ListView?

bookmarksListView = (ListView)findViewById(R.id.bookmarks_listview); 
                        bookmarksDbCursor = bookmarkStore.getCursor(); 
                        startManagingCursor(bookmarksDbCursor); 
                        String[] bookmarksColumns = new String[3]; 
                        bookmarksColumns[0] = "TITLE"; 
                        bookmarksColumns[1] = "URL"; 
                        bookmarksColumns[2] = "ICONID"; 
                        int[] bookmarksViews = new int[3]; 
                        bookmarksViews[0] = R.id.title_text; 
                        bookmarksViews[1] = R.id.subtitle_text; 
                        bookmarksViews[2] = R.id.icon_view; 
                        bookmarksListAdapter = new SimpleCursorAdapter(this, 
                                        R.layout.list_item, 
                                        bookmarksDbCursor, 
                                        bookmarksColumns, 
                                        bookmarksViews); 
                        bookmarksListView.setAdapter(bookmarksListAdapter); 
                        bookmarksListView.setOnItemClickListener(new OnItemClickListener() 
{ 
                                @Override 
                                public void onItemClick(AdapterView<?> parent, View view, 
                                                int position, long id) { 
                                        Toast.makeText(BookmarkHistoryTabActivity.this, "Clicked ID " + 
Long.toString(id), Toast.LENGTH_SHORT).show(); 
                                } 
                        }); 
                        registerForContextMenu(bookmarksListView); 

Note: bookmarkStore.getCursor() returns an unmanaged cursor from a
sqlite database containing the columns from bookmarksColumns.

The icons I’m loading (from R.drawable) aren’t the issue – I’ve tried turning them off and it has no
effect. I’ve encountered a similar scrolling issue with a custom ListAdapter
extending BaseAdapter I wrote a while ago, and it was caused by not properly
setting the view’s values in getView() I resolved it using the fix posted
at
How to load the Listview "smoothly" in android…,
but that was for a custom adapter class, and I’m not really sure how to implement that fix when I’m using a stock
SimpleCursorAdapter, or if that fix even applies to this situation.

EDIT: The query returning info on the database looks like this, in case that helps:

public Cursor getCursor() {
            openDB();
            Cursor c = mDB.query(DB_TABLENAME, new String[]{"_id", "ICONID", "DATE", "TITLE", "URL"}, null, null, null, null,"DATE DESC");
            return c;
    }

EDIT2: I have no idea why, but this behavior only occurs in android 1.6+ I’ve tried changing my query, removing the sorting, etc. for my cursor, nothing seems to help. The database is very small (<20 items) and only contains the columns present in the query above.

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

    We’ve determined that this is an issue with Android versions 1.6+, rather than our code, and are leaving it as-is.

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

Sidebar

Ask A Question

Stats

  • Questions 525k
  • Answers 525k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer HTML <input type="button" ID="delBtn" class="calcBtn" value="Del" /> Javascript in separate… May 16, 2026 at 10:10 pm
  • Editorial Team
    Editorial Team added an answer I found out that the problem I had was I… May 16, 2026 at 10:10 pm
  • Editorial Team
    Editorial Team added an answer According to this and that, Perl's system() returns exit values… May 16, 2026 at 10:10 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Does anyone know how can I replace this 2 symbol below from the string
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a JSP page retrieving data and when single or double quotes are
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,
I want to count how many characters a certain string has in PHP, but

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.