{ "id": "159158", "key": "AC-3431", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-04-05T15:12:54.000+0000", "created": "2016-03-30T23:45:36.000+0000", "labels": [ "android", "picker", "pickerrow", "ui", "ui.picker", "ui.pickerrow" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-05T15:23:14.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The Picker and Picker row on android is broken. When adding a Label to a row, the displayed data in the Picker Rows is simply [Picker Row]. This works as expected on iOS.\r\n\r\n\r\n\r\n- in example.js:\r\nvar data = [];\r\nfor(var i = 0; i < theData.length; i++){\r\n var _label = Ti.UI.createLabel({id:'label', font:{fontSize:20,fontWeight:'bold'}, text: theData[i].text, textAlign:'left'});\r\n var _row = Ti.UI.createPickerRow();\r\n _row.add(_label);\r\n data.push(row);\r\n}\r\n\r\n$.picker.add(data);\r\ndata.push(_row);", "attachment": [ { "id": "58773", "filename": "Screen Shot 2016-03-30 at 4.25.33 PM.png", "author": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-30T23:25:53.000+0000", "size": 135624, "mimeType": "image/png" } ], "flagged": false, "summary": "Picker and Picker Row broken on android, picker row shows [Picker Row]", "creator": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 5.1.1, 5.2.0, 5.2.1\r\nDevice: Samsung Galaxy S5, android 4.4.4, Samsung Galaxy S4 android 4.4.2 (LG, Nexus 5, ALL DEVICES)\r\nOS: Mac OS 10.11.1", "comment": { "comments": [ { "id": "381157", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI have tested this issue. According to the documentation \"Views added to picker rows is only supported on iOS.\" So \"custom view for rows\" is not supposed to work on android. I've tested the following code in a classic project and found that on android when adding a Label to a row, the displayed data in the Picker Rows is simply \"Picker Row\". But on iOS \"custom view for row\" works as expected.\r\nAccording to documentation this is expected behavior not a bug.\r\n[Documentation Link|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.PickerRow]\r\n[Android Screenshot Link|http://s18.postimg.org/bzp03k3fd/image.png]\r\n[iOS Screenshot Link| http://s12.postimg.org/rxsnwswhp/ios.png]\r\n*Code:*\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true,\r\n layout: 'vertical'\r\n});\r\n\r\nvar fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ];\r\nvar color = [ 'red', 'green', 'blue', 'orange' ];\r\n\r\nfor(var i=0, ilen=fruit.length; i