[TIMOB-19434] Android 5 - Picker in AlertDialog has offset background
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 4.1.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | android, picker |
| Reporter | Justin Toth |
| Assignee | Unknown |
| Created | 2015-04-28T21:19:43.000+0000 |
| Updated | 2018-02-28T19:55:31.000+0000 |
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.
!Screen Shot 2015-04-28 at 5.17.48 PM.png|thumbnail!
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();
Attachments
| File | Date | Size |
|---|---|---|
| Screen Shot 2015-04-28 at 5.17.48 PM.png | 2015-04-28T21:18:52.000+0000 | 91545 |
| SDK 3.5.1GA Android 5.png | 2015-04-29T05:44:02.000+0000 | 69858 |
| SDK 4.0.0 RC Android 4.2.png | 2015-04-29T05:44:02.000+0000 | 59297 |
| SDK4.0.0 RC Android 5.png | 2015-04-29T05:44:05.000+0000 | 55430 |
No comments