{ "id": "93734", "key": "TIMOB-9849", "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": null, "resolutiondate": null, "created": "2012-06-24T06:07:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "community", "core" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:39.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Tableviewrow created when Android anyDensity = true are too small and don't take into account high density\r\n \r\n\r\nThe screenshots were taken with sections, but same for basic tableview too. This app.js reproduces:\r\nChange anyDensity from true to false to see difference\r\n\r\n/*\r\n * Single Window Application Template:\r\n * A basic starting point for your application. Mostly a blank canvas.\r\n * \r\n * In app.js, we generally take care of a few things:\r\n * - Bootstrap the application with any data we need\r\n * - Check for dependencies like device type, platform version or network connection\r\n * - Require and open our top-level UI component\r\n * \r\n */\r\n\r\n//bootstrap and check dependencies\r\nif (Ti.version < 1.8 ) {\r\n\talert('Sorry - this application template requires Titanium Mobile SDK 1.8 or later');\t \t\r\n}\r\n\r\n// This is a single context application with mutliple windows in a stack\r\n(function() {\r\n\t//determine platform and form factor and render approproate components\r\n\tvar osname = Ti.Platform.osname,\r\n\t\tversion = Ti.Platform.version,\r\n\t\theight = Ti.Platform.displayCaps.platformHeight,\r\n\t\twidth = Ti.Platform.displayCaps.platformWidth;\r\n\t\r\n\t//considering tablet to have one dimension over 900px - this is imperfect, so you should feel free to decide\r\n\t//yourself what you consider a tablet form factor for android\r\n\tvar isTablet = osname === 'ipad' || (osname === 'android' && (width > 899 || height > 899));\r\n\t\r\n\tvar self = Titanium.UI.createWindow({\r\n title: 'Window',\r\n layout: 'vertical'\r\n }); \r\n \r\n var myRow1 = Ti.UI.createTableViewRow({title: 'Row 1', font:{fontSize: '16dp'}, hasChild: true, backgroundColor:'white' });\r\n var myRow2 = Ti.UI.createTableViewRow({title: 'Row 2', font:{fontSize: '16dp'}, hasChild: true, backgroundColor:'white' });\r\n var data = [myRow1, myRow2];\r\n \r\n // Finally create a tableview and add it to the window\r\n var tableView = Ti.UI.createTableView({\r\n data:data,\r\n backgroundColor: 'transparent'\r\n });\r\n \r\n self.add(tableView);\r\n\r\n self.open();\r\n})();\r\n\r\n\r\n", "attachment": [ { "id": "28666", "filename": "screenshot-1.jpg", "author": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "created": "2012-06-24T06:07:39.000+0000", "size": 74379, "mimeType": "image/jpeg" }, { "id": "28667", "filename": "screenshot-2.jpg", "author": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "created": "2012-06-24T06:09:48.000+0000", "size": 67021, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: Basic tableview too small on high density android device", "creator": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "environment": "SDK 2.0.2\r\niOS 5.0\r\nAndroid 2.3.3\r\nRuntime: V8\r\nDevice: Samsung SIII", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }