{ "id": "164117", "key": "TIMOB-24058", "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-05-16T17:18:32.000+0000", "created": "2016-10-20T21:07:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-16T17:23:03.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": "*This a regression. It broke in 5.4.0.GA.Works fine in 5.3.1.GA.*\r\n\r\nh5.Steps to reproduce:\r\n1. Use the code below in your app.js & build for android device/emulator.\r\n{code}\r\nvar _window = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar data = [];\r\n\r\nfor (var i = 0; i < 10; i++) {\r\n var tvr = Ti.UI.createTableViewRow({\r\n title: 'test ' + i,\r\n hasChild: true,\r\n // backgroundSelectedImage:'/KS_nav_ui.png',\r\n backgroundSelectedColor: 'red',\r\n height:'30',\r\n focusable:true\r\n });\r\n data.push(tvr);\r\n}\r\n\r\n\r\nvar tv = Ti.UI.createTableView({\r\n data: data,\r\n separatorColor:'black'\r\n});\r\n\r\n_window.add(tv);\r\n_window.open();\r\n{code}\r\n2. After the app launches press & hold on any of the tableviewrows.\r\n\r\nh5.Actual results:\r\n1. The background color for the tableview row does not turn red or if the the backgroundSelectedImage property is used image does not appear when you touch the table view row.\r\n\r\nh5.Expected results:\r\n1. The background color for the tableview row should turn red as long as you hold your finger on the screen.\r\n2. As soon as you lift your finger the red color should go back to the default white or window background color.\r\n\r\nRef: \r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableViewRow-property-backgroundSelectedColor\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableViewRow-property-backgroundSelectedImage\r\n \r\n\r\n", "attachment": [ { "id": "61171", "filename": "TIMOB-24058.mov", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-04T00:41:44.000+0000", "size": 1366218, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "Android: backgroundSelectedColor & backgroundSelectedImage property does not work for tableviewrow", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc Studio : 4.8.0.201610171310\r\nMac OS Version : 10.11.6\r\nXCODE Version : Xcode 8.0 Build version 8A218a\r\nAPPC CLI AND APPC NPM : {\"NPM\":\"4.2.8-9\",\"CLI\":\"6.0.0-62\"}\r\nTi CLI : 5.0.10\r\nAlloy : 1.9.3\r\nNode : v4.6.0\r\nSDK Version : 6.0.0.v20161019091022", "closedSprints": [ { "id": 889, "state": "closed", "name": "2017 Sprint 10 SDK", "startDate": "2017-05-08T00:27:49.740Z", "endDate": "2017-05-22T00:27:00.000Z", "completeDate": "2017-05-22T02:41:01.011Z", "originBoardId": 114 }, { "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": "400308", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8579", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-03T00:53:59.000+0000", "updated": "2016-11-03T00:53:59.000+0000" }, { "id": "404047", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with this environment:\r\nNPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20170103080657\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2\r\nAndroid Device 6.0.1\r\nAndroid Emulator 6.0.1_x86\r\n\r\nTesting was done on both Device and Emulator with the demo code above. On the device, the app worked as expected. On the Emulator, however, the row did not stay consistently red while the mouse button was pressed. Occasionally, the row flickered red after the mouse button was released. The attached clip \"TIMOB-24058.mov\" shows the behavior. The circle around the cursor shows when the mouse is pressed down.\r\n\r\n", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-04T00:52:05.000+0000", "updated": "2017-01-04T00:53:01.000+0000" }, { "id": "419009", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] I cannot reproduce the issue on emulator.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-03T11:55:04.000+0000", "updated": "2017-05-03T11:55:04.000+0000" }, { "id": "419072", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews], {{backgroundSelectedColor}} works now but {{backgroundSelectedImage}} does not.\r\nI do not see the image when I click on the row.\r\n\r\nStudio Ver : 4.9.0.201704240654\r\nSDK Ver : 6.1.0.v20170502132103\r\nOS Ver : 10.12.3\r\nXcode Ver : Xcode 8.3.2\r\nAppc NPM : 4.2.9\r\nAppc CLI : 6.2.0\r\nTi CLI Ver : 5.0.12\r\nAlloy Ver : 1.9.11\r\nNode Ver : 6.10.1\r\nJava Ver : 1.8.0_101\r\nDevices : google Nexus 6P --- Android 7.1.1\r\ngoogle Nexus 5 --- Android 5.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-03T23:16:02.000+0000", "updated": "2017-05-03T23:16:55.000+0000" }, { "id": "419158", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~lchoudhary] Working fine on both emulator and device, you need to hold down a row to see the background:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'gray'}),\r\n tv = Ti.UI.createTableView({separatorColor: 'black'}),\r\n data = [];\r\n\r\nfor (var i = 0; i < 3; i++) {\r\n var tvr = Ti.UI.createTableViewRow({\r\n title: 'TEST ' + i,\r\n hasChild: true,\r\n backgroundSelectedImage: 'android/default.png',\r\n height: 96,\r\n focusable: true\r\n });\r\n data.push(tvr);\r\n}\r\ntv.data = data;\r\n\r\nwin.add(tv);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-05T10:07:59.000+0000", "updated": "2017-05-05T10:08:13.000+0000" }, { "id": "419237", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews], Checked again. Me & [~smohammed] can't see the image when we hold down on a tableviewrow.\r\nChecked with 6.1.0.v20170505162105.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-06T00:24:39.000+0000", "updated": "2017-05-06T00:24:39.000+0000" }, { "id": "419781", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~lchoudhary] Images placed in {{Resources/android}} should be accessible.\r\n\r\n*EXAMPLE*\r\n{code}\r\n// Resources/android/default.png\r\n// should be accessible like this\r\nbackgroundSelectedImage: 'default.png'\r\n{code}\r\n\r\nIf this is an issue, it is a separate issue from this ticket.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T14:48:54.000+0000", "updated": "2017-05-16T14:49:08.000+0000" }, { "id": "419795", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews], It was user error, I can see the {{backgroundSelectedImage}} from {{Resources/android/}} as well.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T17:17:03.000+0000", "updated": "2017-05-16T17:17:03.000+0000" }, { "id": "419799", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\n{{backgroundSelectedColor}} & {{backgroundSelectedImage}} can be seen when tableviewrow is tapped & held.\r\nClosing.\r\n\r\nStudio Ver: 4.9.0.201705110256\r\nSDK Ver: 6.1.0.v20170514022959\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.2\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.1\r\nTi CLI Ver: 5.0.13\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ oneplus A0001 --- Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T17:22:40.000+0000", "updated": "2017-05-16T17:22:40.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }