Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28431] Android: Implement ListView#scrollToItem animation argument

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2021-08-16T11:44:12.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.1.0
ComponentsAndroid
Labelsandroid, parity, titanium
ReporterBrian Knorr
AssigneeGary Mathews
Created2021-04-28T19:37:48.000+0000
Updated2021-08-16T11:44:12.000+0000

Description

Attempting to programmatically "scroll to bottom" using Ti 9.3.x ListView#scrollToItem on Android results in very poor ux performance with a time-consuming and choppy scrolling effect. Eg: $.listView.scrollToItem(0, ITEM_COUNT - 1) After regressing different Titanium SDK's I determined this issue first occurred in 9.3.x, where previously (ie 9.2.2.GA and before) the "scroll to bottom" was essentially instant. I have attached a sample project that demonstrates the problem as well 2 videos showing the sample app running on both 9.3.2.GA and 9.2.2.GA

Attachments

FileDateSize
9.2.2.GA.mov2021-04-28T19:36:41.000+00002340921
9.3.2.GA.mov2021-04-28T19:36:14.000+00003830532
sample-app.zip2021-04-28T19:34:20.000+00008653849

Comments

  1. Gary Mathews 2021-04-29

    Android will animate the scrolling to an item by default, a parity improvement could be made by implementing the animation argument for this method
  2. Gary Mathews 2021-04-29

    master: https://github.com/appcelerator/titanium_mobile/pull/12762

JSON Source