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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:37:26+00:00 2026-06-08T14:37:26+00:00

On samsung I9003 When i scroll the view is causing graphical noise. What could

  • 0

On samsung I9003 When i scroll the view is causing graphical noise. What could be the problem?

First i read XML file that contains specific structure and i put that structure to arrayList.

For each element from arrayList i Do :

//here goes a small image like 5px * 10px

tr = new TableRow(this);
ImageView triangle = new ImageView(this);

params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
                params.gravity = 0x11;
                params.span = 8;


triangle.setBackgroundResource(R.drawable.complex_grey_down);
                triangle.setLayoutParams(params);
                tr.addView(triangle);
                tl.addView(tr, params);
                // here goes main title of the row
                tr = new TableRow(this);
                child = new TextView(this);
                child.setText(sn.getName());
                params = new LayoutParams(LayoutParams.FILL_PARENT,
                    LayoutParams.FILL_PARENT);
                params.gravity = 0x11;
                params.span = 8;
                child.setTypeface(null, Typeface.BOLD);
                child.setTextColor(res.getColor(R.color.text));
                child.setLayoutParams(params);
                tr.addView(child);
                tl.addView(tr, params);
                // here goes short note under the title
                if (sn.getNote().length() > 0) {
                    tr = new TableRow(this);
                    child = new TextView(this);
                    child.setText(sn.getNote());
                    child.setTextSize(12);
                    child.setPadding(30, 5, 30, 10);
                    child.setTextColor(res.getColor(R.color.text));
                    child.setGravity(Gravity.CENTER);
                    params = new LayoutParams(LayoutParams.FILL_PARENT,
                        LayoutParams.FILL_PARENT);
                    params.gravity = 0x11;
                    params.span = 8;
                    child.setLayoutParams(params);
                    tr.addView(child);
                    }
                    tl.addView(tr, params);
                }

After adding 10+ rows like that phone cant handle it . Is this structure too complicated for some phones. And is using table layout and complex rows with multiple textviews and small amount of imageviews is right solution for such content


Well I implemented sackOfViewsAdapter, but it doesnt help. On the same samsung phone application does not work properly. I noticed one thing, if you start application first time after installing it, everything works fine, theres no lag and graphical ‘noise’ on the screen, but when application is forced closed and started again all these wierd things happen

  • 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-08T14:37:30+00:00Added an answer on June 8, 2026 at 2:37 pm

    And is using table layout and complex rows with multiple textviews and small amount of imageviews is right solution for such content

    No, because as you described, when the list gets too large you are inflating way too many views into memory at the same time. Eventually, if your list gets large enough, any device will simply crash with an OutOfMemoryException.

    The correct pattern for implementing a scrolling list like this is to use ListView and a customized ListAdapter. This pattern recycles views as they scroll on screen, minimizing memory usage, and the job of the adapter is to provides the data structure necessary to fill in each view as it scrolls into view.

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

Sidebar

Related Questions

I have samsung i5503 galaxy. I got a problem in developing app. First I
I have a Samsung Galaxy Y. My application writes log file to sd card
I debug with a Samsung Galaxy SII, running 2.3.6. I created an app that
my device is samsung s first image is saved in sdcard/DCIM second image is
I'm currently using a Samsung Galaxy Tab P1000, and I'm stuck in a problem
I have a simple Samsung Smart TV app that plays a series of video
I just got a Samsung 10.1 tablet and apart from the fact that the
I have a samsung galaxy s and i have made an application that make
My Samsung Galaxy S Captivate crashes on bootup and I need to read the
I have a Samsung Galaxy Tab (Android 2.2 Froyo, etc) that I am developing

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.