[TIMOB-28431] Android: Implement ListView#scrollToItem animation argument
GitHub Issue | n/a |
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-08-16T11:44:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.1.0 |
Components | Android |
Labels | android, parity, titanium |
Reporter | Brian Knorr |
Assignee | Gary Mathews |
Created | 2021-04-28T19:37:48.000+0000 |
Updated | 2021-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
Android will animate the scrolling to an item by default, a parity improvement could be made by implementing the animation argument for this method
master: https://github.com/appcelerator/titanium_mobile/pull/12762