{ "id": "98702", "key": "TIMOB-10342", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-01-17T13:23:26.000+0000", "created": "2012-08-06T00:33:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "24640", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "104942", "key": "TIMOB-11762", "fields": { "summary": "Android: can't update image inside a TableViewRow", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:41: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 a table view with more than one row. Each row contains one image and one label. My requirement is on click on the image of a particular row, that image need to change. In iPhone it is working fine but in android after the second click image is not changing. I have attached one sample code here. ", "attachment": [ { "id": "30281", "filename": "SampleTableView 2.zip", "author": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-06T00:33:23.000+0000", "size": 826478, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Image view in a table view row can not be dynamically changed more than once.", "creator": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android SDK:2.3.3 and 4.0.3\r\nAndroid Device: Emulator,Galaxy s, Galaxy s 2\r\niPhone Device: Simulator\r\nTitanium SDK: 2.1.1.v20120718121609\r\nTitanium Studio, build: 1.0.9.201202141208", "comment": { "comments": [ { "id": "213306", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3. Problem\r\n\r\nImage views inside table rows do not change after the first time when we toggle between two images. For example, when we open the app, image 1 is loaded in the image view. We click on the image view and the image changes to image 2. Click on the image view again and it does not change to image 1. The value in e.source.image however, contains the path to the correct image each time.\r\n\r\nh3. Steps to reproduce\r\n\r\n1. Click on image view (the image changes)\r\n2. Click on image view (the image does not change)\r\n\r\n\r\nh3. Code to reproduce\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\n\r\nvar aTableView = Ti.UI.createTableView();\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.FILL\r\n});\r\n\r\n\r\nvar anImageView = Ti.UI.createImageView({\r\n\timage : 'test.png',\r\n\twidth : 200,\r\n\theight : 200,\r\n\ttop : 5,\r\n\tleft : 5\r\n});\r\n\r\nvar imgStatus = 0;\r\n\r\nanImageView.addEventListener('click', function(e){\r\n\t\r\n\tif(imgStatus == 0) {\r\n\t\te.source.image = 'test2.png';\r\n\t\timgStatus = 1;\r\n\t} else {\r\n\t\te.source.image = 'test.png';\r\n\t\timgStatus = 0;\r\n\t}\r\n\t\r\n\talert(e.source.image);\r\n});\r\n\r\nrow.add(anImageView);\r\n\r\naTableView.setData([row]);\r\nwin.add(aTableView);\r\n{code}\r\n\r\nh3. Expected result\r\n\r\nImage view toggles between images correctly\r\n\r\nh3. Actual result\r\n\r\nImage does not change after the first click", "updateAuthor": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T08:52:16.000+0000", "updated": "2012-08-08T08:52:16.000+0000" }, { "id": "226121", "author": { "name": "heenok", "key": "heenok", "displayName": "heenok", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nI have the same problem here !\r\nAny update ?\r\n\r\nThanks !", "updateAuthor": { "name": "heenok", "key": "heenok", "displayName": "heenok", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T14:24:09.000+0000", "updated": "2012-11-05T14:24:09.000+0000" }, { "id": "227442", "author": { "name": "anandt", "key": "anandt", "displayName": "Anand T", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n I'm also having the same issue. Any updates available on this issue?", "updateAuthor": { "name": "anandt", "key": "anandt", "displayName": "Anand T", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-15T09:05:11.000+0000", "updated": "2012-11-15T09:05:11.000+0000" }, { "id": "231456", "author": { "name": "vinh0604", "key": "vinh0604", "displayName": "Vinh Bach", "active": true, "timeZone": "Asia/Ho_Chi_Minh" }, "body": "I got this problem too, when will the Titanium team fix it?", "updateAuthor": { "name": "vinh0604", "key": "vinh0604", "displayName": "Vinh Bach", "active": true, "timeZone": "Asia/Ho_Chi_Minh" }, "created": "2012-12-14T18:45:36.000+0000", "updated": "2012-12-14T18:45:36.000+0000" }, { "id": "234773", "author": { "name": "dusteffect", "key": "dusteffect", "displayName": "Ricardo Pinho", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The workaround for this bug prevents a clean programming. The Titanium framework to keep its followers shouldn't wait all this time for solving this type of unacceptable bugs on an User Experience framework.", "updateAuthor": { "name": "dusteffect", "key": "dusteffect", "displayName": "Ricardo Pinho", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T12:21:55.000+0000", "updated": "2013-01-17T12:21:55.000+0000" }, { "id": "234780", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Dupe of TIMOB-11762 which is already fixed in master and will soon be back ported to 3_0_X for 3.0.2", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T13:23:26.000+0000", "updated": "2013-01-17T13:23:26.000+0000" }, { "id": "414605", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:41:42.000+0000", "updated": "2017-03-21T22:41:42.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }