{ "id": "93421", "key": "TIMOB-9616", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-25T10:24:20.000+0000", "created": "2012-06-18T13:57:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_tableviewrow", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-25T10:24:20.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": "h2. Problem description\r\nBackground Selected Image it's being displayed when clicking on a tableViewRow, but then it does not disappear\r\n\r\nh2. Steps to reproduce\r\nRun the sample code (choose an image as backgroundSelectedImage).\r\nClick on the tableViewRow.\r\nResult: backgroundImage is shown but does not disappear after releasing the click.\r\n\r\nOnly reproducible on Android ICS OS 4.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\ttitle:'test'\r\n});\r\n\r\nvar data = [];\r\n\r\nvar tvr = Ti.UI.createTableViewRow({\r\n\ttitle:'test1',\r\n\thasChild:true,\r\n\tbackgroundSelectedImage:'image.png'\r\n});\r\ndata.push(tvr);\r\n\r\n\r\nvar tv = Ti.UI.createTableView({\r\n\tdata:data\r\n});\r\n\r\nwin.add(tv);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: on ICS 4, 'backgroundSelectedImage:image' does not disappear after clicking on a tableViewRow ", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK tested 2.0 and 2.1\r\nAndroid OS 4 with ICS", "comment": { "comments": [ { "id": "199532", "author": { "name": "falk", "key": "falk", "displayName": "MAIRDUMONT GmbH & Co. KG", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I see this bug also with Mobile SDK 1.8.2.", "updateAuthor": { "name": "falk", "key": "falk", "displayName": "MAIRDUMONT GmbH & Co. KG", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-21T02:58:44.000+0000", "updated": "2012-06-21T02:58:44.000+0000" }, { "id": "226630", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue happens on 3.x, 4.0 and 4.1 devices.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-07T22:31:48.000+0000", "updated": "2012-11-07T22:31:48.000+0000" }, { "id": "226796", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3399\nSteps for FR:\n1. Run the test case below.\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor:'white',\n title:'test'\n});\n \nvar data = [];\n \n\nfor (var i = 0; i < 30; i++) {\n\tvar tvr = Ti.UI.createTableViewRow({\n\t\ttitle : 'test ' + i,\n\t\thasChild : true,\n\t\tbackgroundSelectedImage:'KS_nav_ui.png'\n\t\t//backgroundSelectedColor : 'red'\n\t});\n\tdata.push(tvr);\n}\n\n \nvar tv = Ti.UI.createTableView({\n data:data\n});\n \nwin.add(tv);\n \nwin.open();\n{code}\ni) Click any row. Should see the background image shows when the row is pressed and the background image disappears when row is not pressed.\nii) Modify the above test case to use backgroundSelectedColor instead of backgroundSelectedImage. Run the test case again.\niii) Click any row. Should see the red background color shows when the row is pressed and the red background color disappears when row is not pressed.\n\n2. Run KS->Base UI->Views->Table Views for a sanity check.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T00:09:34.000+0000", "updated": "2012-11-09T00:09:34.000+0000" }, { "id": "235318", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "BackgroundImage as well as backgroundColor is disappearing after click release. \r\nEnvironment used for verification -\r\nTitanium SDK: 3.1.0.v20130114171802\r\nTitanium  Studio:3.0.1.201212181159\r\nDevice: Samsung GALAXY Note (2.3.6) , Nexus 7 Android 4.1", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T09:39:21.000+0000", "updated": "2013-01-22T09:39:21.000+0000" }, { "id": "235593", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3771", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T22:16:31.000+0000", "updated": "2013-01-23T22:16:31.000+0000" }, { "id": "235753", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-open to update fix versions", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T19:46:28.000+0000", "updated": "2013-01-24T19:46:28.000+0000" }, { "id": "235862", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T10:23:50.000+0000", "updated": "2013-01-25T10:23:50.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }