{ "id": "109838", "key": "TIMOB-12775", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-23T02:52:34.000+0000", "created": "2013-02-17T09:42:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T01:22:16.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": "In Android, when a property is set to null, we need to define default behavior for each property. \r\n\r\n{code}\r\nvar label = Ti.UI.createLabel({\r\n text: 'hi',\r\n //html: null,\r\n color: null,\r\n highlightedColor: null,\r\n font: null,\r\n textAlign: null,\r\n verticalAlign: null,\r\n ellipzise: null,\r\n wordWrap: null,\r\n autoLink: null,\r\n layout: null,\r\n size: null,\r\n left: null,\r\n top: null,\r\n center: null,\r\n right: null,\r\n bottom: null,\r\n transform: null,\r\n backgroundColor: null\r\n});\r\nvar image = Ti.UI.createImageView({\r\n width: null,\r\n height: null,\r\n images: null, \r\n canScale: null,\r\n image: null,\r\n defaultImage: null\r\n \r\n});\r\nvar win = Ti.UI.createWindow();\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\n1.Run code, app shouldn't crash, you should see the text 'hi'", "attachment": [], "flagged": false, "summary": "Android: Implement default values for view properties", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "239044", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3892", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T17:56:46.000+0000", "updated": "2013-02-20T17:56:46.000+0000" }, { "id": "410214", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T01:22:16.000+0000", "updated": "2017-03-09T01:22:16.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }