Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8766297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:30:58+00:00 2026-06-13T16:30:58+00:00

i make simple titanium mobile application. at first i want to open new window

  • 0

i make simple titanium mobile application. at first i want to open new window when i press some button. when i use modal window, it can show a title bar so i can put back button in there, like this:

enter image description here

Here’s my code for do that :

    var MainMenu = require('ui/common/option2/MainMenu');

    var mainMenuWindow = Titanium.UI.createWindow({
        title:'Main Menu',
        backgroundColor:'white',
        modal:true,
        navBarHidden:Ti.Platform.osname ==='android' ? true : false
    });

    var mainMenu = new MainMenu(mainMenuWindow);
    mainMenuWindow.add(mainMenu);

    mainMenuWindow.open();

but if i clear modal:true the title bar is not shown like this :

enter image description here

Has anyone know how to show/add title bar when open new window without modal? i’ve tried using toolbar, but it was really troublesome because i should define the font size, and even position of the button 🙁 any suggestion for that? many thanks..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:30:59+00:00Added an answer on June 13, 2026 at 4:30 pm

    Actually there is a problem in showing the title bar without using modal, so for that here is the tweak.

    You have to add a tabgroup and add your window to its tab and set `tabBarHidden’ to true for that window.

    you will see your title bar when you run the app..

    here is the sample code for it

    var tabGroup = Ti.UI.createTabGroup();
    
    var win = Ti.UI.createWindow({
      backgroundColor:'#fff',
      tabBarHidden:true
    });
    
    var tab = Ti.UI.createTab({
       window: win,
      title: 'my win'
    });
    
    tabGroup.addTab(tab);
    
    tabGroup.open();
    

    The above solution will work in iOS.

    For Android here is the trick:

    Add these lines to your <app-project-dir>/platform/android/res/layout/titanium_tabgroup.xml file.

    <?xml version="1.0" encoding="utf-8"?>
    <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">
    
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="0dp">
    
        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:padding="0dp"
            android:layout_weight="1"/>
    
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:layout_weight="0"/>
    
    </LinearLayout>
    
    </TabHost>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use some php to make simple header/footer files for my webpages.
I want to make simple onClick event $('._1').click(function(){ window.open('abc.html?parameter=1'); }); in above case ,
Basically I want to make simple toggle program (that will be mapped to some
I'm trying to make simple use of the NSNotification center inside my iPhone application,
I'm trying to use a framework called appcelerator titanium to make a simple iphone
I want to make simple java program that will insert some text into current
I am trying to make simple application of Zodiac signs where I want 12
I want to make simple authentication like # SessionController require 'session.rb' def create Session.new(params[:email],
I am making Titanium mobile project where I want to make one global function
I make simple game using Box2D. I want to add new feature of Black

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.