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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:28:38+00:00 2026-05-25T02:28:38+00:00

I am following one book tutorial. While developing it, I come across a typical

  • 0

I am following one book tutorial. While developing it, I come across a typical problem. I need to know that how should I change my content of a Tab while I move from one tab to another? thanks for any suggestions.

  • 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-05-25T02:28:38+00:00Added an answer on May 25, 2026 at 2:28 am

    Here is a nice tutorial of TabActivity you are looking for,

    Tab Example

    For changing the icon of selected tab you have to create an xml for each tab like this in drawable folder

    first_tab.xml

        <item android:state_selected="false"        
              android:drawable="@drawable/tab_unselected_icon"/>
        <item android:state_selected="true"        
              android:drawable="@drawable/tab_selected_icon"/>
    </selector>
    

    And the while creating tabs you have to use this xml like this,

    intent = new Intent().setClass(this, Activity_name.class);
            spec = tabHost.newTabSpec("yourTab_name").setIndicator("yourTab_name",res.getDrawable(R.drawable. first_tab)).setContent(intent);
            tabHost.addTab(spec);
    

    And you are done with it. Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am following this tutorial book that involves signing up and user creation for
I'm following a node.js tutorial from a book called Node Web Developments. Problem: In
I am following the book C++ Cookbook from O'Reilly and I try one of
I'm a beginner following a book for creating iPhone apps. One of the steps
I came across the following code fragment in a CouchDB book . function(doc) {
I am following a book to learn C++ (come from a python background). I've
Sorry if repost I’m new to JSP. I’m following a tutorial from a book,
I was following the tutorial on Magma from the awesome Seaside book and at
I have the following classes mapped as one to many: Reader and book when
If i have the following XML: <Books> <Book> <Name>Test</Name> ... </Book> <Book> <Name>Another one</Name>

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.