Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to auto scroll the titanium UI picker?

$
0
0

Since I already facing a time lag for the first time even when I add the options dynamically.

var picker = Ti.UI.createPicker({
  top:50
});
 
var data = [];
data[0]=Ti.UI.createPickerRow({title:'Bananas'});
data[1]=Ti.UI.createPickerRow({title:'Strawberries'});
data[2]=Ti.UI.createPickerRow({title:'Mangos'});
data[3]=Ti.UI.createPickerRow({title:'Grapes'});
data[4]=Ti.UI.createPickerRow({title:'Mangos'});
data[5]=Ti.UI.createPickerRow({title:'Grapes'});
data[6]=Ti.UI.createPickerRow({title:'Mangos'});
data[7]=Ti.UI.createPickerRow({title:'Grapes'});
data[8]=Ti.UI.createPickerRow({title:'Mangos'});
data[9]=Ti.UI.createPickerRow({title:'Grapes'});
data[10]=Ti.UI.createPickerRow({title:'Mangos'});
data[11]=Ti.UI.createPickerRow({title:'Grapes'});
//..........
//..........
picker.add(data);
picker.selectionIndicator = true;
 
win.add(picker);
Hope this can be easily reproduced by others. To overcome I feel we can try doing auto-scroll in ui.picker.

Is this possible?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>