Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18741] Make action bar available before the window is opened

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.5.0
Fix Version/sn/a
ComponentsAndroid
Labelsactionbar, activity, window
ReporterManojkumar Murugesan
AssigneeUnknown
Created2015-03-25T17:56:12.000+0000
Updated2018-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.

Comments

  1. Rene Pot 2017-09-19

    This sounds like a really great addon. Can this be (re-)scheduled?

JSON Source