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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:25:29+00:00 2026-05-17T06:25:29+00:00

Anyone know how facebook did this: From what I know we cannot change the

  • 0

Anyone know how facebook did this:

alt text

From what I know we cannot change the height of tabhost. I’m guessing that they laid the “Frank Cho” view over the tabhost to give it the appearance of being shorter but I may be wrong. Anyone know what’s going on?

  • 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-17T06:25:29+00:00Added an answer on May 17, 2026 at 6:25 am

    You actually can have custom looking tab widgets. You need to set the tab indicator to some custom layout (with your drawables) and you should be good to go.

    Here’s an semi-example:

    final TabHost host = getTabHost();
    
    final TextView indicator = (TextView) getLayoutInflater().inflate(
                                R.layout.tab_indicator,
                                getTabWidget(), false);
    indicator.setText("Tab title");
    
    host.addTab(host.newTabSpec("The tab tag")
                .setIndicator(indicator)
                .setContent([put your content here]));
    }
    

    Where the tab_indicator layout can look like this:

    <TextView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/tab_label"
        android:layout_width="0dip"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:gravity="center"
        android:textSize="14sp"
        android:textStyle="bold"
        android:minHeight="38dp"
        android:background="@drawable/minitab" />
    

    The minitab drawable is a drawable item selector (so you need to have an image for selected, default, pressed, and unselected). The facebook app used some white drawable image for the default tab and the blue gradient drawable for the unselected tabs.

    Check out the Google IO Schedule app for a full working example: http://code.google.com/p/iosched/ (and specifically the TrackDetailActivity.java)

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

Sidebar

Related Questions

Does anyone know how to order Facebook places by distance from a search location?
The latest releases of the facebook-actionscript-api caters to actionscript 3.0 does anyone know from
does anyone know how to change the label of a request-form-submit in a facebook
Does anyone know of a solution for this that i may be able to
Does anyone know how facebook connect buttons generate the pop-up window that you use
Does anyone know how to change the image for the facebook like button? I'm
Does anyone know of a good platform agnostic example or library that does Facebook
Anyone know about this? I am trying to embed that plugin and am lost.
Anyone know how to set the custom 404 Error pages that the Visual Studio
Anyone know if there is a standard way to create a List from an

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.