Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19434] Android 5 - Picker in AlertDialog has offset background

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 4.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, picker
ReporterJustin Toth
AssigneeUnknown
Created2015-04-28T21:19:43.000+0000
Updated2018-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

FileDateSize
Screen Shot 2015-04-28 at 5.17.48 PM.png2015-04-28T21:18:52.000+000091545
SDK 3.5.1GA Android 5.png2015-04-29T05:44:02.000+000069858
SDK 4.0.0 RC Android 4.2.png2015-04-29T05:44:02.000+000059297
SDK4.0.0 RC Android 5.png2015-04-29T05:44:05.000+000055430

Comments

No comments

JSON Source