Hello, i can't change my picker's default font color. it is always white. if i set picker's background color white then i can't see picker's items/text. i tried with picker's color to black but that does not work. is it a issue with titanium or has there any alternative to do this ?
What i concerned, it is the problem with android, not with iPhone. In iPhone, picker's default background color is white and default color(font) is black. so there is no problem with iPhone. But In android, picker's default background color is window's background property. so if i want to see a common look and feel of picker's view in both android and iPhone, then i have to use backgroundColor property in picker. But in this case, the default font color is white for android and can't change that even adding color property in picker. so being both the background color and font color white in android, we can't distinguish them to see. Thats the problem. I am attaching my code snippet below :
var win = Ti.UI.createWindow({ backgroundColor : '#36A9E1', barColor : '#66B2FF', layout : 'vertical', fullscreen : true }); // Window properties var View = Ti.UI.createView({ width : '300dp', height : Ti.UI.SIZE, top : '100dp' }); var Picker = Ti.UI.createPicker({ backgroundColor : '#FFF', // if i comment out this line then i can see the text/items as white font color color : '#000', // this line never working to show item/text color black type : Ti.UI.PICKER_TYPE_DATE, borderRadius : 5, width : Ti.UI.FILL, height : Ti.UI.FILL }); Picker.selectionIndicator = true; var label = Ti.UI.createLabel({ id : '', backgroundColor : '#fff', color : '#000', text : '', font : { fontFamily : 'Arial', fontWeight : 'bold', fontSize : '14dp' }, textAlign : 'center', height : '25dp', width : '300dp', top : '10dp', borderRadius : 5 }); Picker.addEventListener('change', function(e) { label.text = e.value.toLocaleString(); }); View.add(Picker); win.add(label); win.add(View); win.open();