{ "id": "147352", "key": "TIMOB-19434", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-04-28T21:19:43.000+0000", "priority": null, "labels": [ "android", "picker" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:31.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "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.\r\n\r\n!Screen Shot 2015-04-28 at 5.17.48 PM.png|thumbnail!\r\n\r\nHere is the code to repro:\r\n\r\n{code:javascript}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true,\r\n layout: 'vertical'\r\n});\r\nwin.open();\r\n\r\nvar picker = Ti.UI.createPicker({\r\n useSpinner: true,\r\n selectionIndicator: true,\r\n left: 0, right: 0\r\n});\r\n\r\nvar data = [];\r\ndata[0] = Ti.UI.createPickerRow({ title: 'Landlord' });\r\ndata[1] = Ti.UI.createPickerRow({ title: 'Property Manager' });\r\n\r\npicker.add(data);\r\n\r\nvar alertDialog = Ti.UI.createAlertDialog({\r\n title: 'Are you a Landlord or a Property Manager?',\r\n androidView: picker,\r\n buttonNames: [\r\n 'Cancel',\r\n 'Done'\r\n ]\r\n});\r\nalertDialog.show();\r\n{code}", "attachment": [ { "id": "55145", "filename": "Screen Shot 2015-04-28 at 5.17.48 PM.png", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2015-04-28T21:18:52.000+0000", "size": 91545, "mimeType": "image/png" }, { "id": "55167", "filename": "SDK 3.5.1GA Android 5.png", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-04-29T05:44:02.000+0000", "size": 69858, "mimeType": "image/png" }, { "id": "55166", "filename": "SDK 4.0.0 RC Android 4.2.png", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-04-29T05:44:02.000+0000", "size": 59297, "mimeType": "image/png" }, { "id": "55165", "filename": "SDK4.0.0 RC Android 5.png", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-04-29T05:44:05.000+0000", "size": 55430, "mimeType": "image/png" } ], "flagged": false, "summary": "Android 5 - Picker in AlertDialog has offset background", "creator": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "environment": "Android 5\r\nTi SDK 4.1.0.v20150427212043", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }