{ "id": "97792", "key": "TIMOB-10088", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-02-21T14:20:58.000+0000", "created": "2012-07-23T12:17:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "exalture" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-17T18:30:57.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": "h4.Problem Description:\r\nIf we set the textId of a label before setting the color of the label, it works fine, but if we set the color first then text is never shown.\r\n\r\nh4:Sample Code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white',\r\n\tlayout: 'vertical'\r\n});\r\n\r\nvar labelOne = Ti.UI.createLabel({\r\n\ttextid: 'myString',\r\n\tcolor: 'black'\r\n});\r\n\r\nvar labelTwo = Ti.UI.createLabel({\r\n\tcolor: 'black'\r\n\t//textid: 'myString',\r\n});\r\nlabelTwo.textid = 'myString';\r\n\r\nvar labelThree = Ti.UI.createLabel({\r\n\tcolor: 'black',\r\n\ttext: 'If you see THIS, i have not changed'\r\n});\r\nlabelThree.textid = 'myString';\r\n\r\nvar labelFour = Ti.UI.createLabel({\r\n\tcolor: 'black',\r\n\ttextid: 'dummytextid'\r\n});\r\nlabelFour.textid = 'myString';\r\n\r\nwin.add(labelOne);\r\nwin.add(labelTwo);\r\nwin.add(labelThree);\r\nwin.add(labelFour);\r\nwin.open();\r\n{code}\r\n\r\n\r\nStrings.xml file:\r\n\r\n{code}\r\n\r\n\r\n\tYOU CAN SEE THIS STRING VALUE!!\r\n\r\n{code}\r\n\r\n1. label 1 shows up well because 'myString' textid is executed inside the main label method but two, three and four are not taken.\r\n2. 'myString' is available in /i18n/en/strings.xml file.\r\n3. Expected result: all the four strings should be shown.", "attachment": [ { "id": "29972", "filename": "labelTextId.zip", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-23T14:55:37.000+0000", "size": 2322426, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: TextId wouldn't show up if the Color of label is set before textId", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Platform OS: Android\r\nPlatform OS Version: 2.2", "comment": { "comments": [ { "id": "209450", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The Help Desk Ticket corresponding this JIRA link is : http://support-admin.appcelerator.com/display/APP-594529", "updateAuthor": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T16:28:55.000+0000", "updated": "2012-07-25T16:28:55.000+0000" }, { "id": "238999", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I am not able to reproduce the issue. I can see all the labels. I think the problem may be that the string is not picked up correctly because of some reason in the project setup.\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-20T08:19:42.000+0000", "updated": "2013-02-20T08:19:42.000+0000" }, { "id": "239000", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I am not able to reproduce this, I can see all the four labels. It looks like an project environment setup issue, the strings may not be getting copied to the resource bundle", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-20T08:23:25.000+0000", "updated": "2013-02-20T08:23:25.000+0000" }, { "id": "239229", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I am not able to reproduce this, all the labels shows up correctly. I think the strings are not defined properly and is not able to fetch it by id.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-21T14:20:58.000+0000", "updated": "2013-02-21T14:20:58.000+0000" }, { "id": "413554", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:30:57.000+0000", "updated": "2017-03-17T18:30:57.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }