titanium-sdk
titanium-sdk copied to clipboard
feat(android): expose Picker text color
Expose the color
property to change the text color of the Picker:
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow();
var picker = Ti.UI.createPicker({
borderStyle: Ti.UI.INPUT_BORDERSTYLE_NONE,
backgroundColor: "#000",
color: "#ff0"
});
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'});
picker.add(data);
win.add(picker);
win.open();