{ "id": "83562", "key": "TIMOB-6560", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-12-11T09:25:41.000+0000", "created": "2011-12-10T15:53:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:24.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": "When anyDensity is false, the separators between the tableViewRows alternate between think and thin. This is not the case when anyDensity is true.\r\n\r\nSee attached screenshot.\r\n\r\nh4. Steps to reproduce\r\nStep 1: add the anyDensity: false property to your tiapp.xml\r\nStep 2: run the code below\r\nStep 3: notice the size of the separators between the rows\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({backgroundColor:'#fff'});\r\n\r\nvar data = [\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n\t{title:'Row'},\r\n]\r\n\r\nvar tv = Ti.UI.createTableView({\r\n\tdata: data\r\n});\r\nwin.add(tv);\r\n\r\nwin.open();\r\n{code}\r\n\r\n{code:title=tiapp.xml}\r\n\r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nh4. Workaround\r\nAdd your own separator to the row\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'#fff'});\r\n\r\nfunction createRow(){\r\n\tvar row = Ti.UI.createTableViewRow();\r\n\tvar separator = Ti.UI.createView({top:49, backgroundColor:'#000', height:2});\r\n\tvar title = Ti.UI.createLabel({text:'Row', left:10});\r\n\trow.add(separator);\r\n\trow.add(title);\r\n\treturn row;\r\n}\r\n\r\nvar data = [\r\n\tcreateRow(),\r\n\tcreateRow(),\r\n\tcreateRow(),\r\n\tcreateRow(),\r\n\tcreateRow(),\r\n\tcreateRow(),\r\n];\r\n\r\nvar tv = Ti.UI.createTableView({\r\n\tdata: data\r\n separatorColor: 'white',\r\n});\r\nwin.add(tv);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "24561", "filename": "tableView.jpg", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-10T15:54:46.000+0000", "size": 30032, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: tableView - separators alternate different sizes when anyDensity false", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.7.5, 1.8.0.1 RC1 \r\nJavascript Engine: Rhino\r\n-Android emulator WVGA800, 2.3.3\r\n-Nexus One 2.2.2\r\nOSX 10.7.2\r\nTitanium Studio version: 1.0.7", "comment": { "comments": [ { "id": "175721", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "anyDensity: false, means that the UI is scaled. That means lines will change size and possibly be missing since at the time its being scaled, it's already been drawn. This has been true for Android since 1.6 IIRC.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-11T09:25:41.000+0000", "updated": "2011-12-11T09:25:41.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }