{ "id": "134742", "key": "TIMOB-17621", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-28T04:21:06.000+0000", "created": "2014-08-14T12:35:43.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport", "android", "defect" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T22:20: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": "There is a native functionality in Android to set the DividerHeight on a ListView. This functionality is not exposed in Alloy.\r\n\r\n3 weeks ago this issue was raised: https://developer.appcelerator.com/question/176416/remove-android-listview-separator\r\n\r\nIn Android, to set the height of the Divider you need to call this function\r\n\r\nlistView.setDividerHeight(1);\r\n\r\n(as explained here: http://stackoverflow.com/questions/11858180/change-the-divider-height-of-listview-dynamically)\r\n\r\nIt seems trivial to expose this feature to Titanium Developers.", "attachment": [], "flagged": false, "summary": "Android: Android ListView setDividerHeight is not exposed in Titanium", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android", "closedSprints": [ { "id": 398, "state": "closed", "name": "2015 Sprint 09 SDK", "startDate": "2015-04-25T00:00:00.000Z", "endDate": "2015-05-09T00:00:00.000Z", "completeDate": "2015-05-11T14:11:17.028Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "318810", "author": { "name": "wpccolorblind", "key": "wpccolorblind", "displayName": "josh rose", "active": true, "timeZone": "America/Los_Angeles" }, "body": "+1!!", "updateAuthor": { "name": "wpccolorblind", "key": "wpccolorblind", "displayName": "josh rose", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-15T07:42:51.000+0000", "updated": "2014-08-15T07:42:51.000+0000" }, { "id": "320562", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Has this issue been prioritised yet for a next release?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-27T13:06:58.000+0000", "updated": "2014-08-27T13:06:58.000+0000" }, { "id": "336288", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "This would be welcome, specially as a way to disable the line between rows on Android ListViews... although you can make it transparent, it seems there is always a 1px separator between them, crippling some complex fluid tableview designs...", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-12-13T01:12:42.000+0000", "updated": "2014-12-13T01:12:55.000+0000" }, { "id": "350314", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar listView = Ti.UI.createListView({\r\n\tseparatorColor:'blue',\r\n\tdividerHeight: \"3dp\"\r\n});\r\n\r\nvar sections = [];\r\nvar fruitSection = Ti.UI.createListSection();\r\nvar fruitDataSet = [\r\n {properties: { title: 'Apple'}},\r\n {properties: { title: 'Banana'}},\r\n {properties: { title: 'Apple'}},\r\n {properties: { title: 'Banana'}},\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nlistView.sections = sections;\r\n\r\nlistView.addEventListener('itemclick', function(e){\r\n if (listView.dividerHeight == \"3dp\") {\r\n listView.dividerHeight = 3;\r\n } else {\r\n listView.dividerHeight = \"3dp\";\r\n \r\n }\r\n});\r\n{code}\r\n1. Run code, click on the row to toggle divider height.\r\nmaster PR: https://github.com/appcelerator/titanium_mobile/pull/6793/files", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-21T22:11:07.000+0000", "updated": "2015-04-21T22:12:46.000+0000" }, { "id": "350955", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Test code I carried out:\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'#000'});\r\n\r\n\r\nvar listView = Ti.UI.createListView({\r\n\r\n\r\n\tseparatorColor:'blue',\r\n\r\n\r\n\tdividerHeight: \"3dp\"\r\n\r\n\r\n});\r\n\r\n \r\n\r\nvar sections = [];\r\n\r\n\r\nvar fruitSection = Ti.UI.createListSection();\r\n\r\n\r\nvar fruitDataSet = [\r\n\r\n\r\n {properties: { title: 'Apple'}},\r\n\r\n\r\n {properties: { title: 'Banana'}},\r\n\r\n\r\n {properties: { title: 'Apple'}},\r\n\r\n\r\n {properties: { title: 'Banana'}},\r\n\r\n\r\n];\r\n\r\n\r\nfruitSection.setItems(fruitDataSet);\r\n\r\n\r\nsections.push(fruitSection);\r\n\r\n \r\n\r\nlistView.sections = sections;\r\n\r\n \r\n\r\nlistView.addEventListener('itemclick', function(e){\r\n\r\n\r\n if (listView.dividerHeight == \"3dp\") {\r\n\r\n\r\n listView.dividerHeight = 20;\r\n\r\n\r\n } else {\r\n\r\n\r\n listView.dividerHeight = \"3dp\";\r\n\r\n\r\n\r\n\r\n }\r\n\r\n\r\n});\r\n\r\nwin.add(listView);\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-04-28T04:23:19.000+0000", "updated": "2015-04-28T04:23:19.000+0000" }, { "id": "350966", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~hpham], could you update this ticket with story points? Thank you!", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-04-28T07:25:55.000+0000", "updated": "2015-04-28T07:25:55.000+0000" }, { "id": "416584", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:20:09.000+0000", "updated": "2017-03-31T22:20:09.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }