Very poor performance of Android's tableView

You must Login before you can answer or comment on any questions.

Has anyone encountered poor tableView scrolling performance in Android? I load 10 rows, each row with a background image of around 900 bytes, a leftImage of around 15kb, and around 10 or so small images of around 1 to 2kb. Everytime I attempt to scroll the tableView, it stutters as though it seems to be taking time to load those images. Haven't they been loaded before hand? Am I hogging too much memory? Please advise.

— asked 2 years ago by Zheng Da Clinton Goh
2 Comments
  • Hi Zeng.

    Have you tried to put "className" property to the table view rows?

    From the bottom of Table View Row documentation:

    Notes

    Make sure you set the tableClass on each row instance if using more than one type of row layout. You can use the same value for each instance of a row where the layout is the same - even if the value of the elements inside the row have different values. For example, if the text is the only thing different between two cells but the layout is the same, both row instances should have the same value for tableClass.

    You can listen for table row events on all rows by adding an event listener to the table view instance. Events automatically propagate to parent views.

    — commented 2 years ago by Ivan Škugor

  • Hi Ivan, thanks for your input. I've already tried to include className on each row. It improves the performance by a BIT only. I still cant' get it to scroll properly, and have given up since. Its really disappointing this. I thought they would make improvements in 1.6.++

    — commented 2 years ago by Zheng Da Clinton Goh

2 Answers

If you post a code sample I would be happy to take a look at it for you.

Zheng

Fortunately, the core team have literally just fixed this issue. See ticket TIMOB-1821 for details.

Continuous Build 1.7.X includes it. I have tested this myself and witnessed a considerable improvement. :)

Hope this helps

— answered 2 years ago by Paul Dowsett
answer permalink
2 Comments
  • That's great news! I was fighting this all day today, so I'm elated that the fix will be in 1.7.

    — commented 2 years ago by Trevor Borgmeier

  • I am using sdk 1.7.1 and loading the table view with images is too slow..When it is loaded without image it 200 rows are rendered in 4.5 sec and withimage it goes beyond 25 sec. Images are loaded locally..

    — commented 2 years ago by Anand AV

Your Answer

Think you can help? Login to answer this question!