[TIMOB-5420] Add splitWindow BarColor property
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Trivial |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 1.8.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Alan Leard |
Assignee | Eric Merriman |
Created | 2011-10-03T17:05:59.000+0000 |
Updated | 2018-08-02T17:31:47.000+0000 |
Description
Please add the barColor property to Ti.UI.iPad.createSplitWindow. Currently bar is always gray.
var tabgroup = Ti.UI.createTabGroup();
SplitViewNav = {};
// WINDOWS
SplitViewNav.masterWindow = Ti.UI.createWindow({title:'Master',backgroundColor:'red', barColor:'blue'});
SplitViewNav.detailWindow = Ti.UI.createWindow({title:'Detail',backgroundColor:'blue', barColor:'red'});
// MASTER NAV GROUP
SplitViewNav.masterNav = Ti.UI.iPhone.createNavigationGroup({
window:SplitViewNav.masterWindow
});
// DETAIL NAV GROUP
SplitViewNav.detailNav = Ti.UI.iPhone.createNavigationGroup({
window:SplitViewNav.detailWindow
});
// SPLIT VIEW
SplitViewNav.splitView = Titanium.UI.iPad.createSplitWindow({
masterView:SplitViewNav.masterNav,
detailView:SplitViewNav.detailNav,
barColor:'red'
});
SplitViewNav.open = function()
{
Ti.API.info('in open for split view nav');
SplitViewNav.splitView.open();
};
SplitViewNav.splitView.addEventListener('visible', function(e) {
if (e.view == 'detail') {
e.button.title = "Popover";
SplitViewNav.detailWindow.leftNavButton = e.button;
}
else if (e.view == 'master') {
SplitViewNav.detailWindow.leftNavButton = null;
}
});
var tab1 = Ti.UI.createTab({
window:SplitViewNav.splitView
});
tabgroup.addTab(tab1);
tabgroup.open();
Why is the sample code putting a split view into a tabGroup?
That is what the customer is trying to do and what exposes the splitWindow bar color. The customer has acknowledged that it may be against Apple HIG, but there are other apps (release by apple) that do this.