{ "id": "106836", "key": "ALOY-439", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15887", "description": "2014 Sprint 03", "name": "2014 Sprint 03", "archived": true, "released": true, "releaseDate": "2014-02-14" } ], "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": "2014-02-07T15:58:40.000+0000", "created": "2012-12-20T03:10:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "14633", "description": "Alloy 0.3.3", "name": "Alloy 0.3.3", "archived": false, "released": true, "releaseDate": "2012-11-30" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-02-11T16:09:28.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "I'm trying to create action items using code like this:\r\n\r\nindex.xml:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.tss:\r\n{code}\r\n\".container\": {\r\n},\r\n\"MenuItem\": {\r\n\tshowAsAction: Ti.Android.SHOW_AS_ACTION_ALWAYS\r\n},\r\n\"#item1\": {\r\n\ttitle: \"One\"\r\n},\r\n\"#item2\": {\r\n\ttitle: \"Two\",\r\n\ticon: \"images/action_refresh.png\"\r\n},\r\n\r\n\"Label\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\"\r\n} \r\n{code}\r\n\r\nHowever, even though the menu items seem to be being created with showAsAction set to Ti.Android.SHOW_AS_ACTION_ALWAYS, they don't show up in the UI.\r\n\r\nIf I add menu items in the open callback by specifying an onCreateOptionsMenu method and then calling invalidateOptionsMenu, the action items appear correctly. \r\n\r\nConclusion: something is jacked with the menu items created from markup.\r\n\r\n(Deep, huh?)", "attachment": [ { "id": "45698", "filename": "app.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-07T15:56:41.000+0000", "size": 3262411, "mimeType": "application/zip" }, { "id": "45699", "filename": "Screen Shot 2014-02-07 at 10.56.46 AM.png", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-07T15:57:39.000+0000", "size": 26617, "mimeType": "image/png" } ], "flagged": false, "summary": "ActionItems created in markup don't appear in action bar.", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "291907", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "attached file", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-07T15:56:41.000+0000", "updated": "2014-02-07T15:56:41.000+0000" }, { "id": "291908", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "screenshot", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-07T15:57:39.000+0000", "updated": "2014-02-07T15:57:39.000+0000" }, { "id": "291909", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I cannot reproduce with Alloy 1.3.0, SDK 3.2.0.GA. Tested with the attached app. See the screenshot attached for my results. Items appear in ActionBar as expected, event handlers fire when clicked.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-07T15:58:40.000+0000", "updated": "2014-02-07T15:58:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }