{ "id": "176324", "key": "TIMOB-28571", "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-10-29T22:36:08.000+0000", "created": "2021-10-27T22:17:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ActionBar", "android", "icon", "resource" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-10-29T22:36:11.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\n[Ti.Android.ActionBar|https://titaniumsdk.com/api/titanium/android/actionbar.html] properties \"icon\" and \"logo\" currently only support a {{String}} path to an image. It should be modified to support {{Ti.App.Android.R.drawable}} IDs so that it can be assigned a vector drawable, which are commonly used as icons in native Android apps.\r\n\r\n*Icon Example:*\r\n{code:javascript}\r\nconst window = Ti.UI.createWindow();\r\nwindow.activity.onCreate = () => {\r\n\tconst actionBar = window.activity.actionBar;\r\n\tactionBar.icon = Ti.App.Android.R.drawable.titanium_icon_checkcircle;\r\n};\r\nwindow.open();\r\n{code}\r\n\r\n*Logo Example:*\r\nNote that you would normally use a PNG for a logo, but vector drawables should be allowed too.\r\n{code:javascript}\r\nconst window = Ti.UI.createWindow();\r\nwindow.activity.onCreate = () => {\r\n\tconst actionBar = window.activity.actionBar;\r\n\tactionBar.logo = Ti.App.Android.R.drawable.titanium_icon_checkcircle;\r\n};\r\nwindow.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Add \"R.drawable\" ID support to ActionBar icons", "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": "459145", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/13149", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-10-28T05:16:04.000+0000", "updated": "2021-10-28T05:16:04.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }