Details
Description
On Android 5, if you create a picker and add it as the androidView in an alertDialog, the background of the selected picker item is offset.
Here is the code to repro:
Ti.UI.backgroundColor = 'white'; |
var win = Ti.UI.createWindow({ |
exitOnClose: true, |
layout: 'vertical' |
});
|
win.open();
|
|
var picker = Ti.UI.createPicker({ |
useSpinner: true, |
selectionIndicator: true, |
left: 0, right: 0
|
});
|
|
var data = []; |
data[0] = Ti.UI.createPickerRow({ title: 'Landlord' }); |
data[1] = Ti.UI.createPickerRow({ title: 'Property Manager' }); |
|
picker.add(data);
|
|
var alertDialog = Ti.UI.createAlertDialog({ |
title: 'Are you a Landlord or a Property Manager?', |
androidView: picker,
|
buttonNames: [
|
'Cancel', |
'Done' |
]
|
});
|
alertDialog.show();
|