{ "id": "104311", "key": "TIMOB-11650", "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": [ { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14699", "description": "2012 Sprint 25 Core", "name": "2012 Sprint 25 Core", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-12-06T21:49:04.000+0000", "created": "2012-11-02T09:30:10.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-and214" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T18:26:51.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": "Not a regression. This is a new feature. Not visible with 2.1.4. \r\n\r\nSteps to reproduce:\r\n1. Use the code below in app.js\r\n{code}\r\nvar win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'red'});\r\n \r\nwin.activity.onCreateOptionsMenu = function(e) {\r\n  var item = e.menu.add({title: 'expand',icon:'images/flower.jpg'});\r\n  item.showAsAction = Ti.Android.SHOW_AS_ACTION_WITH_TEXT;\r\n \r\n  var collapseActionButton = Ti.UI.createButton({\r\n    title: 'Collapse'\r\n  });\r\n  collapseActionButton.addEventListener('click', function() {\r\n    item.collapseActionView();\r\n  });\r\n  item.actionView = collapseActionButton;\r\n \r\n  item.on('expand', function() {\r\n    alert('Expanded menu item!');\r\n  });\r\n  item.on('collapse', function() {\r\n    alert('Collapsed menu item!');\r\n  });\r\n  item.on('click', function() {\r\n    alert('clicked!');\r\n  });\r\n}\r\n \r\nwin.open();\r\n{code}\r\n\r\n2. Add the below code in tiapp.xml\r\n\r\n{code:xml}\r\n\r\n 11\r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n3. Run the app and click the action bar\r\n\r\nExpected result\r\n3. The action bar should display the menu item 'expand' along with an icon image.\r\n\r\nActual result:\r\n3. The action bar only displays the title and not the icon.\r\nEven on using 'item.showAsAction = Ti.Android.SHOW_AS_ACTION_IF_ROOM;' alone as well as along with 'Ti.Android.SHOW_AS_ACTION_WITH_TEXT;' , it do not shows icon even when enough space is available.", "attachment": [], "flagged": false, "summary": "Android: Action bar is not showing icon along with text for the menu item in spite of space availability.", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment used for verification -\r\nTitanium SDK:3.0.0.v20121025171611\r\nTitanium  Studio:3.0.0.201210220122\r\nDevice : Tablet Nexus 7 Android 4.1\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "230298", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As mentioned in the android action bar docs, the action bar's overflow menu shows text only by design.\r\n\r\nhttp://developer.android.com/guide/topics/ui/actionbar.html\r\n\r\nMarking ticket as invalid.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-06T21:49:04.000+0000", "updated": "2012-12-06T21:49:04.000+0000" }, { "id": "247031", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified With - \r\nSDK - 3.1.0.v20130409124549\r\nAppcelerator Studio - 3.1.0.201304091724\r\nOS - Montain Lion (v10.8)\r\nDevice - Samsung Galaxy Tab (v3.2)\r\nClosing this issue as per the last comment.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T09:04:59.000+0000", "updated": "2013-04-11T09:04:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }