Problem description
Adding a SplitWindow in a TabGroup does not allow to hide the title of the Tab.
Use case
The use case is to be able to have the following structure:
TabGroup
--| SplitWindow
----| NavigationWindow
----| NavigationWindow
Previously it was possible to use the NavigationGroup directly in the TabGroup, but the recent change to NavigationWindow does not allow to do so.
The use of SplitWindow inside TabGroup seems to be unsupported (from the doc), but it works fine, and recently an Alloy bug has been fixed to allow it (see ALOY-831).
Test code
index.js
function openMaster() {
var win = Ti.UI.createWindow({
title: "Master 2",
backgroundColor: 'red'
});
$.master_win.openWindow(win);
}
function openDetail() {
var win = Ti.UI.createWindow({
title: "Detail 2",
backgroundColor: 'green'
});
$.detail_win.openWindow(win);
}
$.index.open();
index.xml
<Alloy>
<TabGroup>
<Tab title="Tab 1" icon="KS_nav_ui.png">
<SplitWindow id="splitWin" platform="ios" formFactor="tablet">
<NavigationWindow id="master_win">
<Window title="Master 1">
<Label onClick="openMaster">Master</Label>
</Window>
</NavigationWindow>
<NavigationWindow id="detail_win">
<Window title="Detail 1">
<Label onClick="openDetail">Detail</Label>
</Window>
</NavigationWindow>
</SplitWindow>
</Tab>
<Tab title="Tab 2" icon="KS_nav_views.png">
<Window title="Tab 2">
<Label>I am Window 2</Label>
</Window>
</Tab>
</TabGroup>
</Alloy>
Putting a SplitWindow as a child of a Tab is not supported.
Closing ticket as Won't Fix with reference to the above comments.