{ "id": "111468", "key": "TIMOB-13141", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15397", "description": "2013 Soprint 07 API", "name": "2013 Sprint 07 API", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-27T01:33:14.000+0000", "created": "2013-03-20T21:36:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "listview", "qe-testadded", "triage" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-20T09:32:01.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": "Run the following code below in the Android emulator.\r\n\r\nClick on the accessories (checkmark, detail button, disclosure indicator). The itemclick event does not fire.\r\n\r\nClick anywhere else on the cell. The itemclick event fires.\r\n\r\nEXPECTED BEHAVIOR:\r\nitemclick should still fire when clicking on the accessory.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar listView = Ti.UI.createListView();\r\n\r\nvar tasks = [\r\n {id: 'trash', name: 'Take Out the Trash', icon: 'KS_nav_views.png', accessory: Ti.UI.LIST_ACCESSORY_TYPE_DETAIL},\r\n {id: 'dishes', name: 'Do the Dishes', icon: 'KS_nav_views.png', accessory: Ti.UI.LIST_ACCESSORY_TYPE_DISCLOSURE},\r\n {id: 'doggie', name: 'Walk the Dog', icon: 'KS_nav_views.png', accessory: Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK}\r\n];\r\n\r\nvar data = [];\r\nfor (var i = 0; i < tasks.length; i++) {\r\n data.push(\r\n { properties: {\r\n itemId: tasks[i].id,\r\n title: tasks[i].name,\r\n image: tasks[i].icon,\r\n accessoryType: tasks[i].accessory,\r\n color: 'black'\r\n }\r\n });\r\n}\r\n\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems(data);\r\nlistView.sections = [section];\r\nlistView.addEventListener('itemclick', function(e){\r\n\tTi.API.info(JSON.stringify(e));\r\n});\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ListView itemclick event does not fire when clicking on the accessory", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 3.1.0 (03/19/13 22:57 29a41bf)\r\nAndroid 4.2", "comment": { "comments": [ { "id": "244124", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4033", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T17:38:53.000+0000", "updated": "2013-03-26T17:38:53.000+0000" }, { "id": "246840", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Closing as working fine.\r\n\r\nVerified on:\r\nDevice : Google Nexus 7, Android Version: 4.1\r\nSDK: 3.1.0.v20130409124549\r\nCLI version : 3.1.0-cr\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.0.201304052347\r\nXCode : 4.5.1\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-10T09:18:33.000+0000", "updated": "2013-04-10T09:18:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }