{ "id": "176329", "key": "TIMOB-28575", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "21249", "name": "Release 10.2.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-11-05T18:25:17.000+0000", "created": "2021-11-05T01:32:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "MenuItem", "android", "menu", "theme" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-11-05T18:27:16.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": "*Summary:*\r\nAs of Titanium 10.0.0, we changed our default Titanium theme to not show all-caps button text. We should do the same for menu items shown in the {{ActionBar}} for consistency.\r\n\r\n*Note:*\r\nThe drop-down overflow menu items are not all-caps. Only the menu items shown in the {{ActionBar}} are displayed this way.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Notice {{ActionBar}} shows \"MENU ITEM\" in all-caps. _(This is what we want to change.)_\r\n# Notice the button text and drop-down menu text is not all-caps. _(This is okay.)_\r\n\r\n{code:javascript}\r\nfunction showAlertForEvent(e) {\r\n\talert(`Clicked on: ${e.source.title}`);\r\n}\r\n\r\nconst window = Ti.UI.createWindow();\r\nwindow.activity.onCreateOptionsMenu = (e) => {\r\n\tconst menuItem1 = e.menu.add({\r\n\t\ttitle: \"Menu Item\",\r\n\t\tshowAsAction: Ti.Android.SHOW_AS_ACTION_IF_ROOM,\r\n\t});\r\n\tmenuItem1.addEventListener(\"click\", showAlertForEvent);\r\n\tconst menuItem2 = e.menu.add({\r\n\t\ttitle: \"Drop-Down Menu Item\",\r\n\t\tshowAsAction: Ti.Android.SHOW_AS_ACTION_NEVER,\r\n\t});\r\n\tmenuItem2.addEventListener(\"click\", showAlertForEvent);\r\n};\r\nconst button = Ti.UI.createButton({ title: \"My Button\" });\r\nbutton.addEventListener(\"click\", showAlertForEvent);\r\nwindow.add(button);\r\nwindow.open();\r\n{code}\r\n\r\n*Result:*\r\nNotice \"MENU ITEM\" is in all-caps.\r\n !Menu-AllCaps.png|thumbnail! \r\n\r\n*Expected Result:*\r\nWe want to change our default Titanium theme to not use all-caps everywhere.\r\n !Menu-NotAllCaps.png|thumbnail! \r\n", "attachment": [ { "id": "68029", "filename": "Menu-AllCaps.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-11-05T01:31:42.000+0000", "size": 408472, "mimeType": "image/png" }, { "id": "68028", "filename": "Menu-NotAllCaps.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-11-05T01:31:42.000+0000", "size": 409257, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ActionBar menu item text should not be all-caps by default", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "459155", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/13166", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-11-05T01:47:37.000+0000", "updated": "2021-11-05T01:47:37.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }