titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

feat(android): expose Picker text color

Open m1ga opened this issue 1 year ago • 0 comments

Expose the color property to change the text color of the Picker:

Screenshot_20220914-205518

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();

m1ga avatar Sep 14 '22 18:09 m1ga