{ "id": "146709", "key": "AC-3279", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-19T02:15:41.000+0000", "created": "2015-04-08T12:49:39.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-03-08T07:57:41.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The marquee effect of the native Android TextView is not exposed to the Ti.UI.Label", "attachment": [ { "id": "54878", "filename": "Screenshot_2015-04-10-11-55-35.png", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-10T11:26:21.000+0000", "size": 86739, "mimeType": "image/png" }, { "id": "54968", "filename": "Screen Shot 2015-04-16 at 1.53.44 PM.png", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-04-16T07:58:14.000+0000", "size": 50852, "mimeType": "image/png" }, { "id": "54969", "filename": "Screen Shot 2015-04-16 at 1.55.49 PM.png", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-04-16T07:58:14.000+0000", "size": 48746, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Add support for ellipsize modes on Ti.UI.Label", "creator": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 407, "state": "closed", "name": "2015 Sprint 11 SDK", "startDate": "2015-05-23T00:00:08.253Z", "endDate": "2015-06-06T00:00:00.000Z", "completeDate": "2015-06-08T16:18:16.381Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "349161", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6775\r\n\r\nTest Code:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical',\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar longtext = \"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\";\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#000',\r\n\ttext: longtext,\r\n\tfont:{fontSize:20},\r\n\ttextAlign:'left',\r\n\ttop: 10,\r\n\tleft: 0,\r\n\twidth: 200,\r\n\theight: 24,\r\n\twordWrap: false,\r\n\tellipsize: true\r\n});\r\nwin.add(label1);\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#000',\r\n text: longtext,\r\n font:{fontSize:20},\r\n textAlign:'left',\r\n top: 10,\r\n left: 0,\r\n width: 200,\r\n height: 24,\r\n wordWrap: false,\r\n ellipsize: false\r\n});\r\nwin.add(label2);\r\n\r\nvar label3 = Titanium.UI.createLabel({\r\n color:'#000',\r\n text: longtext,\r\n font:{fontSize:20},\r\n textAlign:'left',\r\n top: 10,\r\n left: 0,\r\n width: 200,\r\n height: 24,\r\n wordWrap: false,\r\n ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_START\r\n});\r\nwin.add(label3);\r\n\r\nvar label4 = Titanium.UI.createLabel({\r\n color:'#000',\r\n text: longtext,\r\n font:{fontSize:20},\r\n textAlign:'left',\r\n top: 10,\r\n left: 0,\r\n width: 200,\r\n height: 24,\r\n wordWrap: false,\r\n ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END\r\n});\r\nwin.add(label4);\r\n\r\nvar label5 = Titanium.UI.createLabel({\r\n color:'#000',\r\n text: longtext,\r\n font:{fontSize:20},\r\n textAlign:'left',\r\n top: 10,\r\n left: 0,\r\n width: 200,\r\n height: 24,\r\n wordWrap: false,\r\n ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MIDDLE\r\n});\r\nwin.add(label5);\r\n\r\nvar label6 = Titanium.UI.createLabel({\r\n color:'#000',\r\n text: longtext,\r\n font:{fontSize:20},\r\n textAlign:'left',\r\n top: 10,\r\n width: 200,\r\n left: 0,\r\n wordWrap: false,\r\n ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MARQUEE\r\n});\r\nwin.add(label6);\r\n\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-10T10:25:54.000+0000", "updated": "2015-04-10T10:50:58.000+0000" }, { "id": "349164", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "Screenshot for the attached test code. Labels show the results for setting ellipsize to:\r\n- true\r\n- false\r\n- Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_START\r\n- Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END\r\n- Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MIDDLE\r\n- Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MARQUEE", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-10T11:26:21.000+0000", "updated": "2015-04-10T11:26:21.000+0000" }, { "id": "352933", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR reviewed and functionally tested. Accepted and merged. Thank you.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-19T02:16:09.000+0000", "updated": "2015-05-19T02:16:09.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }