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 8746443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:11:39+00:00 2026-06-13T12:11:39+00:00

I have a problem with tab bar visibility in non-tab bar activities. How to

  • 0

I have a problem with tab bar visibility in non-tab bar activities. How to set tab bar in non tab activities?

code

TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);




    TabSpec firstTabSpec = tabHost.newTabSpec("tab_id1");
    TabSpec secondTabSpec = tabHost.newTabSpec("tab_id2");
    TabSpec thirdTabSpec = tabHost.newTabSpec("tab_id3");

    firstTabSpec.setIndicator("First").setContent(new Intent(this,FirstTab.class));
    secondTabSpec.setIndicator("Second ").setContent(new Intent(this,SecondTab.class));
    thirdTabSpec.setIndicator("Third").setContent(new Intent(this,ThirdTab.class));


    tabHost.addTab(firstTabSpec);
    tabHost.addTab(secondTabSpec);
    tabHost.addTab(thirdTabSpec);

This is the code for tab bar….. I have 5 activities..firstTab,secondTab,thirdTab,fourthActivity,fifthActivity. But problem is, Tab bar visible for only 3 tab activities but not in fourthActivity and fifthActivity. How to show the tab bar in reamaining activities? please help me…..

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-13T12:11:40+00:00Added an answer on June 13, 2026 at 12:11 pm

    Solved. Change First Tab Activity as a Tab Group. Set Default Tab Group activity as First Tab.

    firstTabSpec.setIndicator("First").setContent(new Intent(this,TABGROUP.class));
    secondTabSpec.setIndicator("Second ").setContent(new Intent(this,SecondTab.class));
    thirdTabSpec.setIndicator("Third").setContent(new Intent(this,ThirdTab.class));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem is that I want to have a tab bar view with its
I am having a problem in Xcode 4 where I have a tab bar
I have written the code programmatically for my tab bar in my table view.The
This is really a strange problem. I have a tab bar controller with 5
I have the following problem. My application has a tab bar at the bottom
Greetings, I have a problem using jqgrid and jquery tab (I am coding in
Problem I have a custom tab control using Chrome-shaped tabs that binds to a
I have a cross-tab report which similar to this Problem is when there are
The problem. I have multiple tab, their content is loaded via ajax, so the
I have a flash app embedded in a yui TabView tab div, the problem

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.