{ "id": "159267", "key": "TIMOB-23140", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-06T11:41:16.000+0000", "created": "2016-04-02T15:52:00.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "label" ], "versions": [ { "id": "17684", "name": "Release 5.2.1", "archived": false, "released": true, "releaseDate": "2016-03-25" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-05-27T21:02:02.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": "Add \r\n{noformat}\r\nlineSpacing: {add: float, multiply: float}\r\n{noformat}\r\n\r\n to Label\r\n\r\n!http://migaweb.de/linespacing.png!\r\n\r\nAndroid doc: http://developer.android.com/reference/android/widget/TextView.html#setLineSpacing%28float,%20float%29\r\n\r\n*Example:*\r\n{code:javascript}\r\nvar win = $.UI.create(\"Window\", {\r\n layout: \"vertical\",\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar l = $.UI.create(\"Label\", {\r\n lineSpacing: {\r\n add: 20,\r\n multiply: 1\r\n },\r\n text: \"asdfasdfasdf\\nasfasfasfasfafsd\\nasfasfasdfasdf\\nadsfasdfasdf\",\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE,\r\n backgroundColor:\"red\"\r\n});\r\n\r\nvar l2 = $.UI.create(\"Label\", {\r\n lineSpacing: {\r\n add: 0,\r\n multiply: 1\r\n },\r\n text: \"qwerqwerqwer\\nqwerqwer\\nqwerqwerqwe\\nqwerqwerqwre\",\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE,\r\n backgroundColor:\"green\"\r\n});\r\n\r\nvar l3 = $.UI.create(\"Label\", {\r\n lineSpacing: {\r\n add: 10,\r\n multiply: 0\r\n },\r\n text: \"yxcvyxcyvx\\nycxvyxcvyxc\\nyxvcyxcvyxcv\\nyxcvyxvyxc\\nyxcvyxcvyx\",\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE,\r\n backgroundColor:\"yellow\"\r\n});\r\n\r\nwin.add(l);\r\nwin.add(l2);\r\nwin.add(l3);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Add lineSpacing property to Label", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android", "closedSprints": [ { "id": 618, "state": "closed", "name": "2016 Sprint 08 SDK", "startDate": "2016-04-09T00:30:18.262Z", "endDate": "2016-04-23T00:30:00.000Z", "completeDate": "2016-04-25T02:38:28.511Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "381356", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7909", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-02T15:56:35.000+0000", "updated": "2016-04-02T17:00:11.000+0000" }, { "id": "381361", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "getter/setter: \r\n\r\n{code:javascript}\r\nlabel.setLineSpacing({\r\n add: 20,\r\n multiply: 2\r\n});\r\n\r\nconsole.log(label.getLineSpacing());\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-02T17:04:34.000+0000", "updated": "2016-04-02T17:04:34.000+0000" }, { "id": "381411", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Thank you for the PR.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-04T02:43:22.000+0000", "updated": "2016-04-04T02:43:22.000+0000" }, { "id": "387057", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation & it works as expected.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.6.0.201605180604\r\nTi SDK : 5.4.0.v20160526011354\r\nTi CLI : 5.0.8\r\nAlloy : 1.8.7\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.5-5\r\nAppc CLI : 5.3.0-47\r\nNode: 4.2.2\r\nNexus 6 - Android 6.0.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-27T21:01:52.000+0000", "updated": "2016-05-27T21:01:52.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }