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

  • Home
  • SEARCH
  • 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 499511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:59:34+00:00 2026-05-13T05:59:34+00:00

I have an application that targets the 1.5 framework and uses the default light

  • 0

I have an application that targets the 1.5 framework and uses the default light theme. When using a tab widget with this theme, the tab images are barely visible, and the tab captions are quite impossible to discern, except for the currently active tab.

In the default dark theme these tabs come through quite clearly, but this is not a solution I’d be very happy with. Is there a simple setting I can set, that sets up the tab widget for better visibility in light themes, or would I have to tamper with images and text styles manually?

  • 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-13T05:59:35+00:00Added an answer on May 13, 2026 at 5:59 am

    it’s not pretty, but you can try this in your tab activity.

    // light theme support
    final TabHost tabHost = getTabHost();
    tabHost.setBackgroundColor(Color.WHITE);
    tabHost.getTabWidget().setBackgroundColor(Color.BLACK);
    
    // hack to set font size
    LinearLayout ll = (LinearLayout) tabHost.getChildAt(0);
    TabWidget tw = (TabWidget) ll.getChildAt(0);
    
    // first tab
    RelativeLayout rllf = (RelativeLayout) tw.getChildAt(0);
    lf = (TextView) rllf.getChildAt(1);
    lf.setTextSize(21);
    lf.setPadding(0, 0, 0, 6);
    
    // second tab
    RelativeLayout rlrf = (RelativeLayout) tw.getChildAt(1);
    rf = (TextView) rlrf.getChildAt(1);
    rf.setTextSize(21);
    rf.setPadding(0, 0, 0, 6);
    

    /res/values/colors.xml should have

    <resources>
        <drawable name="black">#ff000000</drawable>
        <drawable name="white">#ffffffff</drawable>
    </resources>
    

    AndroidManiest.xml should have

    <application android:theme="@android:style/Theme.Light">
    

    if you want to do something crazier, try http://ezmobile.wordpress.com/2009/02/02/customized-android-tabs/

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

Sidebar

Related Questions

I have an ASP.NET MVC 3 (using Entity Framework 4.2) application that uses transactions
I have a PHP application that is written with Zend Framework. It uses Phing
I have an application that uses NHibernate as its ORM and sometimes it experiences
I have been using Entity Framework CTP with Code-First as in this tutorial by
We have a web application that runs on IIS using .NET 2.0 developed and
I've got a web application that targets .Net framework 3.5 and is built with
I have a web application that was originally written on .Net 1.1 Framework. I
I have an application that uses a few classes found only in 10.7 Lion.
I have a web application that I wrote in Visual Studio 2008 that targets
Situation: I have an application that uses http connections extensively (stream ripping app) and

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.