我想隱藏或可見虛假我的Tabbar在我的Android應用程序中。我正在使用Titanium SDK 3.x.任何建議或幫助表示讚賞。如何使用Titanium SDK 3.x在Android中隱藏tabbar?
有可能通過與像「標籤風格或主題」
感謝.XML文件..
我想隱藏或可見虛假我的Tabbar在我的Android應用程序中。我正在使用Titanium SDK 3.x.任何建議或幫助表示讚賞。如何使用Titanium SDK 3.x在Android中隱藏tabbar?
有可能通過與像「標籤風格或主題」
感謝.XML文件..
這是您正在使用,以顯示使用TabBar窗口上的屬性。 Titanium.UI.Window上有一個名爲tabBarHidden的屬性,您可以將其設置爲true。請參閱: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Window
var tabGroup = Titanium.UI.createTabGroup({
backgroundImage: 'NewTabBackground.png',
navBarHidden: true
});
Ti.App.customTabGroupDashBoard = tabGroup;
var tab1 = Titanium.UI.createTab({
title: 'Title One',
window: win1
});
var tab2 = Titanium.UI.createTab({
title: 'Title Two',
window: win2
});
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
// open tab group
return tabGroup;
使用這種Ti.App.customTabGroupDashBoard
在全球任何地方訪問你tabGroup。
感謝您的幫助.. 但是,這對我沒有用......我想隱藏第一個窗口中的tabbar或顯示Android設備底端的tabbar ..鈦3.x SDK – MRT
我沒有得到這個隱藏tabGroup的第一個窗口,你能告訴我你的tabGroup代碼和窗口代碼.... – Thalaivar
對不起,我沒有問題發送我的代碼。但您可以嘗試由Titanium Default App提供的默認演示代碼。在這我想設置我的自定義Tabbar爲此我想隱藏Android中的默認標籤欄。 在iOS中我們添加任何視圖在Tabbar中,但在Android中不可能... 如果您有任何其他解決方案,然後plz幫助我... 任何建議是非常感激。 – MRT
你好,感謝您的早日恢復。 但是,這僅適用於iOS。我包括我的問題。 我需要Android ... – MRT