{ "id": "155197", "key": "TIMOB-20477", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-05T07:43:16.000+0000", "created": "2016-02-29T00:44:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "attributedString" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-11-23T18:49:44.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": "Customer request our SDK to support Superscript/Subscript Attributed String like we did for Titanium.UI.ATTRIBUTE_UNDERLINES_STYLE.\r\n\r\nRef:\r\n\r\nhttp://developer.android.com/reference/android/text/style/SuperscriptSpan.html\r\nhttp://developer.android.com/reference/android/text/style/SubscriptSpan.html", "attachment": [], "flagged": false, "summary": "Android: Request to support Superscript/Subscript Attributed String", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": null, "closedSprints": [ { "id": 704, "state": "closed", "name": "2016 Sprint 18 SDK", "startDate": "2016-08-27T00:18:36.960Z", "endDate": "2016-09-10T00:18:00.000Z", "completeDate": "2016-09-09T20:26:13.865Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "385775", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI think this feature is very much needed to support strings with scientific notations and native android supports this feature.\r\n\r\n[Chemical Compound|http://i38.tinypic.com/qy8n7m.png]\r\n\r\n[Scientific Notation of Number|http://android.okhelp.cz/images/img/textview-superscript-issue.jpg]\r\n\r\n[Mathematical Equation|http://i.stack.imgur.com/Wnsmn.png]\r\n\r\nThanks", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-16T08:50:53.000+0000", "updated": "2016-05-16T08:52:40.000+0000" }, { "id": "395256", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8308\r\n\r\n[> Expected result <|https://abload.de/img/bildschirmfoto2016-09bsqll.png]\r\n\r\nDemo:\r\n{code:javascript}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: '#ddd',\r\n});\r\n \r\nvar attr = Titanium.UI.createAttributedString({\r\n text: 'x2 + y3, hello world!',\r\n attributes: [\r\n {\r\n type: Titanium.UI.ATTRIBUTE_SUPERSCRIPT_STYLE,\r\n range: [1, 1]\r\n },\r\n {\r\n type: Titanium.UI.ATTRIBUTE_SUPERSCRIPT_STYLE,\r\n range: [6, 1]\r\n },\r\n {\r\n type: Titanium.UI.ATTRIBUTE_SUBSCRIPT_STYLE,\r\n range: [15, 5]\r\n }\r\n ]\r\n});\r\n \r\nvar label = Titanium.UI.createLabel({\r\n height: 50,\r\n color: \"#000\",\r\n attributedString: attr\r\n});\r\n \r\nwin.add(label);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-02T23:14:38.000+0000", "updated": "2016-09-04T16:34:07.000+0000" }, { "id": "395316", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-09-05T07:43:28.000+0000", "updated": "2016-09-05T07:43:28.000+0000" }, { "id": "401765", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified using this environment:\r\nNPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.0.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20161122053743\r\nAppcelerator Studio, build: 4.8.0.201611121409\r\nXcode 8.1 GM\r\nAndroid v6.0.1\r\n\r\nI installed the app on the device using the demo code above, and the output matched Hans link \"Expected Result\".", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-23T18:45:50.000+0000", "updated": "2016-11-23T18:45:50.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }