{ "id": "62501", "key": "TIMOB-1869", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "13870", "description": "", "name": "Sprint 2012-16 API", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-12T20:18:03.000+0000", "created": "2011-04-15T03:04:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_tableview", "parity", "qe-and100112", "qe-review", "qe-testadded", "triage" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-04-29T16:44:22.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": "See http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.TableView.selectRow-method.html", "attachment": [], "flagged": false, "summary": "Android: Implement TableView.selectRow", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "208902", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "HD ticket: appc.me/c/APP-612663", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-23T11:05:52.000+0000", "updated": "2012-07-23T11:05:52.000+0000" }, { "id": "211450", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/2674", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-03T15:42:47.000+0000", "updated": "2012-08-03T15:42:47.000+0000" }, { "id": "211451", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'black',\r\n\t//height:'auto',\r\n\ttop:0\r\n\r\n});\r\n\r\nvar data = [];\r\n\r\nfor (var i = 0; i<15 ; i++)\r\n{\r\n\tdata[i] = Ti.UI.createTableViewRow({hasCheck:true,title:'Row'+i,color:'orange',font:{fontFamily:'Roman',fontWeight:'bold',fontSize:20}});\r\n}\r\n\r\n\r\n// create table view\r\nvar tableview = Titanium.UI.createTableView({\r\n\tdata:data\r\n});\r\n\r\nwin.add(tableview);\t \r\n\r\nvar b1 = Ti.UI.createButton({\r\n\t title : 'Click Me',\r\n\t height : 'auto',\r\n\t width : 'auto'\r\n });\r\n \r\n win.add(b1);\r\n\r\nb1.addEventListener('click', function(e){\r\ntableview.selectRow(7);\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-03T15:45:39.000+0000", "updated": "2012-08-03T15:45:39.000+0000" }, { "id": "213868", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2674", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T14:23:40.000+0000", "updated": "2012-08-10T14:23:40.000+0000" }, { "id": "216989", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The behaviour on iOS and Android for TableView.selectRow are different. On Android the selected row is shown at the top of the screen whereas on iOS it is shown selected with blue background color.\r\nVerified on:\r\nTitanium Studio: 2.1.2.201208281351\r\nTitanium SDK: 2.2.0.v20120828153312", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-30T09:09:52.000+0000", "updated": "2012-08-30T09:09:52.000+0000" }, { "id": "223637", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue. \r\nTableView.selectRow does not work on Android, but works fine on iOS.\r\nTested and verified on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121014234610\r\nDevice: Nexus 7 (4.1.2)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-15T19:02:52.000+0000", "updated": "2012-10-15T19:02:52.000+0000" }, { "id": "224116", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Please read documentation attached.\r\n\r\nFrom docs - \r\nSets the currently selected item. If in touch mode, the item will not be selected but it will still be positioned appropriately. If the specified selection position is less than 0, then the item at position 0 will be selected.\r\nThe method only guarantees that the selected row will be visible on the screen.\r\n\r\nModify the test case to add maybe 200 rows and try selecting something off the screen. The row should be visible on screen.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T23:55:17.000+0000", "updated": "2012-10-17T23:55:17.000+0000" }, { "id": "224119", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Expecting behavior is shown with modified test case.\r\nClosing the bug.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T23:58:18.000+0000", "updated": "2012-10-17T23:58:18.000+0000" }, { "id": "227048", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This fix is already in 3_0_X branch. So removed the label merge-3.0.0.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-12T20:16:46.000+0000", "updated": "2012-11-12T20:16:46.000+0000" }, { "id": "227049", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopen to modify the label.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-12T20:17:18.000+0000", "updated": "2012-11-12T20:17:18.000+0000" }, { "id": "249297", "author": { "name": "rafaelks", "key": "rafaelks", "displayName": "Rafael Kellermann Streit", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "How can I change the background of selected rows?\r\n\r\nselectedBackgroundColor is not working here (3.1.0.GA).", "updateAuthor": { "name": "rafaelks", "key": "rafaelks", "displayName": "Rafael Kellermann Streit", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-04-29T00:13:19.000+0000", "updated": "2013-04-29T00:13:19.000+0000" }, { "id": "249361", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rafael Kellermann Streit, calling tableview.selectRow(int) does not mean the row is selected. From the [doc|http://developer.android.com/reference/android/widget/ListView.html#setSelection(int)]:\n{quote}\nIf in touch mode, the item will not be selected but it will still be positioned appropriately.\n{quote}\nThat's why selectedBackgroundColor is not shown in this case.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-29T16:23:09.000+0000", "updated": "2013-04-29T16:23:09.000+0000" }, { "id": "249363", "author": { "name": "rafaelks", "key": "rafaelks", "displayName": "Rafael Kellermann Streit", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Hi Ping, thanks for your answer.\r\n\r\nHow can I select a row changing the backgroundColor? Is it possible?", "updateAuthor": { "name": "rafaelks", "key": "rafaelks", "displayName": "Rafael Kellermann Streit", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-04-29T16:44:22.000+0000", "updated": "2013-04-29T16:44:22.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }