{ "id": "141008", "key": "TIMOB-18148", "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": null, "resolutiondate": null, "created": "2014-12-05T13:16:49.000+0000", "priority": null, "labels": [ "MenuItem", "actionbar", "showAsAction" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Per Android action bar docs http://developer.android.com/guide/topics/ui/actionbar.html\r\n\r\nIf your menu item supplies both a title and an icon—with the title and icon attributes—then the action item shows only the icon by default. If you want to display the text title, add \"withText\" to the showAsAction attribute. For example:\r\n\r\n\r\n\r\nit appears that you can't \"or\" them together in titanium. It always just does the \"ifRoom\" argument\r\n\r\n{code}\r\nvar actionBar = $.win.activity.actionBar;\r\n \r\n if (actionBar) {\r\n //actionBar.title = \"\";\r\n //actionBar.icon = \"\";\r\n //actionBar.logo = \"\";\r\n }\r\n\t \r\n\t\t$.win.activity.onCreateOptionsMenu = function(e) { \r\n\t\t\tvar menu = e.menu; \r\n\t\t\t\r\n\t\t\tvar logoutItem = menu.add({ \r\n\t\t\t\ttitle: \"logout\",\r\n\t\t\t\ticon: \"/images/logout.png\",\r\n\t\t\t\tshowAsAction: Ti.Android.SHOW_AS_ACTION_IF_ROOM | Ti.Android.SHOW_AS_ACTION_WITH_TEXT\r\n\t\t\t});\r\n\t\t};\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: showAsAction can't take multiple parameters for MenuItem of Action Bar", "creator": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "environment": "Android", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }