{ "id": "161556", "key": "TIMOB-23646", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-04-20T17:46:45.000+0000", "created": "2016-07-03T09:02:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "bubbleParent", "button", "events", "listview", "merge-6.1.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-16T18:19:42.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I have listview with button inside the items. I have set a click event function but it don't return custom button's properties. In iOS it works fine.\r\n\r\n\r\n{code:java}\r\nvar item = {\r\n properties : {\r\n accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE,\r\n backgroundColor: '#fff',\r\n width: Ti.UI.FILL,\r\n height : Ti.UI.SIZE\r\n },\r\n events: {\r\n click: eventFunction\r\n },\r\n childTemplates : [\r\n {\r\n type : 'Ti.UI.Button',\r\n bindId : 'bindButton',\r\n properties : {\r\n width: 70,\r\n height: 70,\r\n image: \"/images/user_icon.png\",\r\n borderRadius: 35,\r\n borderWidth: 1,\r\n borderColor: '#dedede',\r\n zIndex: 1,\r\n backgroundColor: 'transparent',\r\n customProperty1 : 10,\r\n customProperty2 : 10\r\n },\r\n },\r\n {\r\n type : 'Ti.UI.Button',\r\n bindId : 'bindButton2',\r\n properties : {\r\n width: 70,\r\n height: 70,\r\n image: \"/images/user_icon.png\",\r\n borderRadius: 35,\r\n borderWidth: 1,\r\n borderColor: '#dedede',\r\n zIndex: 1,\r\n backgroundColor: 'transparent',\r\n customProperty1 : 20,\r\n customProperty2 : 20\r\n }\r\n }\r\n ]\r\n }\r\n\r\nfunction eventFunction(e){\r\n var customProperty1 = e.source.customProperty1;\r\n};\r\n{code}\r\n\r\n\r\nWhen I click on button in eventFunction I expect to find e.source.customProperty1 but e.source don't contain it. Why? In iOS I find the properties as expected. I have tried moving events param inside the button template but the result is the same.\r\n\r\nIs it a bug?", "attachment": [], "flagged": false, "summary": "Android: Button source missing properties on bubbleParent event.", "creator": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "environment": "SDK 5.3.0 OSX", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "390840", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, We need a full reproducible code.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-07-16T08:08:16.000+0000", "updated": "2016-07-16T08:08:16.000+0000" }, { "id": "391000", "author": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "body": "Copy and paste in your app.js. \r\nLook the difference between iOS and Android by clicking on buttons. In android you will not get customProperty by click event.\r\n\r\n\r\n{code:java}\r\n\tvar self = Ti.UI.createWindow();\r\n\t\r\n\tvar items = [];\r\n\t\r\n\tvar template = {\r\n\t properties : {\r\n\t accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE,\r\n\t backgroundColor: '#fff',\r\n\t height: Ti.UI.SIZE,\r\n\t layout: 'horizontal'\r\n\t },\r\n\t events: {\r\n\t click: eventFunction\r\n\t },\r\n\t childTemplates :\r\n\t [\r\n\t\t {\r\n\t\t type : 'Ti.UI.Button',\r\n\t\t bindId : 'bindButton',\r\n\t\t properties : {\r\n\t\t \tleft: 10,\r\n\t\t width: 100,\r\n\t\t height: 40,\r\n\t\t borderRadius: 20,\r\n\t\t borderWidth: 1,\r\n\t\t borderColor: '#dedede',\r\n\t\t backgroundColor: 'green'\r\n\t\t },\r\n\t\t },\r\n\t\t\t{\r\n\t\t type : 'Ti.UI.Button',\r\n\t\t bindId : 'bindButton2',\r\n\t\t properties : {\r\n\t\t \tright: 10,\r\n\t\t width: 100,\r\n\t\t height: 40,\r\n\t\t borderRadius: 20,\r\n\t\t borderWidth: 1,\r\n\t\t borderColor: '#dedede',\r\n\t\t backgroundColor: 'red'\r\n\t\t }\r\n\t\t }\r\n\t\t]\r\n\t};\r\n\t\r\n\tvar listview = Ti.UI.createListView({templates: {'template': template}});\r\n\tvar section = Ti.UI.createListSection();\r\n\t\r\n\tfor(var i=1; i<=10; i++){\r\n\t\t\r\n\t\tvar item = { \r\n\t template : 'template',\r\n\t bindButton : {\r\n\t \ttitle: 'button a ' + i,\r\n\t \tcustomProperty : i\r\n\t },\r\n\t bindButton2 : {\r\n\t \ttitle: 'button b ' + i,\r\n\t \tcustomProperty : i\r\n\t },\r\n\t properties: {\r\n\t itemId: i\r\n\t }\r\n\t };\r\n\t \r\n\t\t\r\n\t\t\r\n\t\titems.push(item);\r\n\t\r\n\t}\r\n\t\r\n\t\r\n\tsection.setItems(items);\r\n\tlistview.sections = [section];\r\n\t\r\n\tself.add(listview);\r\n\t \r\n\tfunction eventFunction(e){\r\n\t //var customProperty1 = e.source.customProperty1;\r\n\t alert(JSON.stringify(e.source));\r\n\t};\r\n\t\r\n\tself.open();\r\n\r\n{code}\r\n\r\n", "updateAuthor": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "created": "2016-07-19T12:06:23.000+0000", "updated": "2016-07-19T12:09:47.000+0000" }, { "id": "391811", "author": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "body": "Any news about it? I think it is important bug.", "updateAuthor": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "created": "2016-07-28T10:19:03.000+0000", "updated": "2016-07-28T10:43:29.000+0000" }, { "id": "400468", "author": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "body": "Is there any news about this problem ?", "updateAuthor": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "created": "2016-11-06T18:13:33.000+0000", "updated": "2016-11-06T18:13:33.000+0000" }, { "id": "400599", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This could potentially be fixed by https://github.com/appcelerator/titanium_mobile/pull/8557", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-08T17:08:28.000+0000", "updated": "2016-11-08T17:08:28.000+0000" }, { "id": "402242", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Just tested the sample code on ti sdk 6.1.0.v20161129163215 but the problem still persist. it's not fixed by that PR.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-30T06:46:23.000+0000", "updated": "2016-11-30T06:46:23.000+0000" }, { "id": "403974", "author": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "body": "Is there any news about this problem ?\r\nI don't know how to solve this problem! Is there any work around?\r\nI don't how it is possibile, I think is a basic functionality to manage interactive listview. ", "updateAuthor": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-03T09:59:46.000+0000", "updated": "2017-01-03T09:59:46.000+0000" }, { "id": "404148", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8729", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-05T14:47:15.000+0000", "updated": "2017-01-05T14:47:15.000+0000" }, { "id": "417711", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed. Master PR merged.\r\n[~gmathews], waiting for 6.1.0 backport.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-19T21:05:33.000+0000", "updated": "2017-04-19T21:05:33.000+0000" }, { "id": "419357", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~lchoudhary] 6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9035", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-09T13:02:32.000+0000", "updated": "2017-05-09T13:02:32.000+0000" }, { "id": "419423", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed for backport.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-09T22:42:09.000+0000", "updated": "2017-05-09T22:42:09.000+0000" }, { "id": "419806", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket. The changes are seen in these builds, installed from the CLI:\r\n6.1.0.v20170516103606\r\n6.2.0.v20170515114643", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T18:18:26.000+0000", "updated": "2017-05-16T18:18:26.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }