Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

tab view title

Hello,

I was wondering if there is a way for us to have title for the tab's layout. In the sample code on mykitchen app the home screen with the 5 tabs is not having any heading and I want to see a way for us to put a heading on that page as it is possible to put heading on any of the selection on the pages we are clicking by assigning heading. The windows seems to be having property of title in documentation but a tab group window didn't seem to be having that property. I tried modifying by using title for tabgroups and it didn't work. The title of hello world is the one i worked towards and expected the top bar on Android incredible to be having that heading along with the emulator. Also has anyone worked towards a dashboard with some icons on a Android using titanium? Thanks a lot in advance.

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup(
{
barColor:'#336699',
title:'hello world'
});

//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
url:'main_windows/base_ui.js',
titleImage:'images/appcelerator_small.png'
});

var tab1 = Titanium.UI.createTab({
icon:'images/tabs/KS_nav_views.png',
title:'Date',
window:win1
});

— asked September 7th 2010 by Varun Khanduja
  • tabgroup
  • title
0 Comments

1 Answer

  • hi varun, was you able to figure out how to have title for tab view?

    — answered March 8th 2014 by naresh hanchate
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.