[TIMOB-18741] Make action bar available before the window is opened
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.5.0 |
Fix Version/s | n/a |
Components | Android |
Labels | actionbar, activity, window |
Reporter | Manojkumar Murugesan |
Assignee | Unknown |
Created | 2015-03-25T17:56:12.000+0000 |
Updated | 2018-02-28T19:55:47.000+0000 |
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,
1. Adding action items
2. Modify action bar properties
When 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).
The 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.
As 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.
This sounds like a really great addon. Can this be (re-)scheduled?