{ "id": "65735", "key": "TIMOB-4206", "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": "11356", "description": "Mobile 1.8.0 M03", "name": "Sprint 2011-24", "archived": true, "released": true, "releaseDate": "2011-06-20" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T13:50:09.000+0000", "created": "2011-05-24T15:36:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-11-05T13:50:09.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": "Tried with two different codes:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar table = Ti.UI.createTableView();\r\nvar data = [];\r\nfor(var i = 0; i<30; i++){\r\n\tvar row = Ti.UI.createTableViewRow();\r\n\trow.img = Ti.UI.createImageView({\r\n\t\timage:'KS_nav_ui.png'\r\n\t});\r\n\trow.add(row.img);\r\n\tdata[i] = row;\r\n}\r\n\r\ntable.data = data;\r\n\r\ntable.addEventListener('click', function(e){\r\n\te.row.img.image = 'KS_nav_views.png';\r\n});\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}\r\nAnd this one:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar table = Ti.UI.createTableView();\r\nvar data = [];\r\nvar clicker = function(a, b){\r\n\ta.addEventListener('click', function(e){\r\n\t\tb.image = 'KS_nav_views.png';\r\n\t});\r\n}\r\nfor(var i = 0; i<30; i++){\r\n\tvar row = Ti.UI.createTableViewRow();\r\n\tvar img = Ti.UI.createImageView({\r\n\t\timage:'KS_nav_ui.png'\r\n\t});\r\n\trow.add(img);\r\n\tclicker(row, img);\r\n\tdata[i] = row;\r\n}\r\ntable.data = data;\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\nThis creates a simple table view with an image view on each row. The goal is to change the image inside the rows when a row is clicked.\r\nh3. What's supposed to happen:\r\nWhen a row from the table view is clicker, the image within should change to the other one on the listener. This happens with iOS.\r\nh3. What happens:\r\nNothing changes\r\n\r\nh4. Helpdesk ticket:\r\nAPP-377288", "attachment": [], "flagged": false, "summary": "Android: Image on table view cannot be dynamically changed", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Droid Device running 2.2.2", "comment": { "comments": [ { "id": "134556", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "There is another helpdesk ticket also waiting for this to be fixed.\n\nhttp://support.appcelerator.com/tickets/APP-954973/homepage", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-05-31T14:32:01.000+0000", "updated": "2011-05-31T14:32:01.000+0000" }, { "id": "156819", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested both cases.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-15T12:32:48.000+0000", "updated": "2011-06-15T12:32:48.000+0000" }, { "id": "158854", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Nexus S 2.3.4 and Nexus One 2.2.2 with 1.7.2.v20110630161836", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T17:56:44.000+0000", "updated": "2011-07-06T17:56:44.000+0000" }, { "id": "171616", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T13:49:40.000+0000", "updated": "2011-11-05T13:49:40.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }