[AC-2171] Titanium picker scrolling lags for the first time
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-01-29T06:05:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, picker, titanium |
Reporter | Praveen J |
Assignee | Ritu Agrawal |
Created | 2014-01-28T12:51:16.000+0000 |
Updated | 2016-03-08T07:41:09.000+0000 |
Description
Whenever I scroll the picker, for the first time there seems to be a small lag in scrolling. That is, when user scrolls the picker, there is a lag for few seconds and then users are allowed to scroll records continuously. This lags happens only for the first time.
First I thought it was a issue with by code, so I posted an issue here in [Q&A](https://developer.appcelerator.com/question/161965/titanium-picker-scrolling-lags-for-the-first-time) But later I tried with default options like below and still the same. Seems like {color:red}by default there is a time lag with titanium UI picker{color}
var picker = Ti.UI.createPicker({
top:50
});
var data = [];
for (var i = 0; i < 500; i++)
{
data[i]=Ti.UI.createPickerRow({title:'Bananas' + i});
}
picker.add(data);
picker.selectionIndicator = true;
win = Ti.UI.createWindow ({backgroundColor : 'black'});
win.add(picker);
win.open();
Hope this can be easily reproduced by others.
We have not been able to reproduce any time lag even after populating the picker with 500 entries. I have updated your sample so that it can run as it is. We tried it on Samsung Galaxy Nexus device. I noticed that you listed SDK version as 1.7.6. Is that correct? If yes, I would strongly recommend you to build your sample code with 3.2.0 SDK.