{ "id": "172917", "key": "TIMOB-26769", "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": [], "resolution": null, "resolutiondate": null, "created": "2019-01-26T10:18:57.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-01-26T15:11:49.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This ticket is about adding support the {{MenuPopup}} API on Android, which is currently iOS only via {{Ti.UI.iOS.MenuPopup}}. It can be done by using the native {{[PopupMenu|https://developer.android.com/reference/android/widget/PopupMenu]}} API.", "attachment": [], "flagged": false, "summary": "Android: Add parity with Ti.UI.iOS.MenuPopup using the PopupMenu API", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "445670", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10652\r\n\r\nExample:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\",\r\n});\r\nvar button = Ti.UI.createButton({\r\n title: \"Show options\"\r\n});\r\nwin.add(button);\r\nvar menu = Ti.UI.createMenuPopup({\r\n items: [\"Option 1\", \"Option 2\"]\r\n});\r\nmenu.addEventListener(\"click\", function(e) {\r\n alert(e);\r\n});\r\nbutton.addEventListener(\"click\", function() {\r\n menu.show({\r\n view: button\r\n });\r\n});\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-26T11:36:09.000+0000", "updated": "2019-01-26T15:11:49.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }