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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:40:47+00:00 2026-05-24T02:40:47+00:00

I am currently making an app (Android 1.6) that can change between two different

  • 0

I am currently making an app (Android 1.6) that can change between two different themes.
I made a custom theme that takes the Android light theme as a parent!
The trouble is that when I switch to white theme my text is not drawn but if I select something I can see the text. Furthermore when I switch themes my titleText, previous and next are the same as in my dark theme.

Here is the code I use for the theme:

<style name="Theme.White" parent="android:Theme.Light"> 
        <item name="android:colorBackground">@color/text_color_dark</item>
        <item name="android:textColor">@color/text_color_dark</item>
        <item name="textPrev">@style/text_prev</item>
        <item name="textRegular">@style/text_regular</item>
        <item name="textTitle">@style/text_title</item>
        <item name="textNext">@style/text_next</item>
        <item name="pageBack">@style/page_back</item>
        <item name="whiteBack">@style/white_back</item>
        <item name="android:textColorPrimaryInverse">@android:color/primary_text_light</item>

    </style>

</resources>  

This is my style:

<style name="text_prev">
    <item name="android:textColor">@color/text_color</item>
</style>

<style name="text_next">
    <item name="android:textColor">@color/default_text_color_2</item>
</style>

<style name="text_regular">
    <item name="android:textColor">@color/text_color_dark</item>
</style>

<style name="text_title">
    <item name="android:textColor">@color/text_color_dark</item>
</style>

<style name="page_back">
    <item name="android:background">@drawable/white_background</item>

</style>
<style name="white_back">
    <item name="android:background">@drawable/white_container</item>
    <item name="android:padding">10sp</item>
</style>

I use two more resources that are in my res/drawable folder. Everything works fine in the standard theme, but as soon as I switch to my light theme my text disappears.
Is there something that I’m doing wrong?

  • 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-24T02:40:48+00:00Added an answer on May 24, 2026 at 2:40 am

    From your code snippet above you’re setting both background and text to the same color i.e. “color/text_color_dark”, these should be different.

        <item name="android:colorBackground">@color/text_color_dark</item>
        <item name="android:textColor">@color/text_color_dark</item>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope I can explain this properly. I'm making an android app that, when
I'm currently making an iPhone app that has PDF viewing a crucial part of
I'm currently making some system that will gather statistical reports from different sites, for
I have a problem with an app i'm currently making for Android phones. I
I am currently making an app and website. Is there a system around that
I am currently making an app that will control and make use of the
I'm currently making an app where the user takes a photo or select it
I'm making an app for Android in Eclipse. Currently the app works fine on
I am currently making an Android app and I'm going to need to make
I am currently developing an android app for 1.6 that parses a json file

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.