{ "id": "146230", "key": "TIMOB-18741", "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": "2015-03-25T17:56:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "actionbar", "activity", "window" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:47.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": "As of now, activity for a heavy weight window is created only when window.open() method is called. So we have to wait for the window open (OR) activity.onCreate event to do any changes on the action bar like,\r\n\r\n1. Adding action items\r\n2. Modify action bar properties \r\n\r\nWhen modifying action bar properties with the actionbarextras module (https://github.com/ricardoalcocer/actionbarextras), it becomes complicated or useless since we could easily recognise the flickering on action bar as soon the window is opened (For example, changing the background color of the action bar on window open event). \r\n\r\nThe great solution could be, changing the way the activity is created, it should be created as soon the window is created (OR) expose the properties and methods on Ti.UI.Window / Ti.Android.ActionBar name space to set the values like action bar background color, font etc., and update them as soon activity is created. \r\n\r\nAs of now Ti.UI.Window.title is updated in the same manner. Title can be set before opening the window but updated internally in TiBaseActivity.java as soon the activity is created. ", "attachment": [], "flagged": false, "summary": "Make action bar available before the window is opened", "creator": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Android 4.0 (API level 14) and up", "comment": { "comments": [ { "id": "428083", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "This sounds like a really great addon. Can this be (re-)scheduled? ", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-19T11:10:02.000+0000", "updated": "2017-09-19T11:10:02.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }