Android 白色主题不显示文本

Android 白色主题不显示文本,android,themes,Android,Themes,我目前正在制作一个应用程序(安卓1.6),可以在两个不同的主题之间切换。 我做了一个自定义主题,将Android light主题作为父主题! 问题是,当我切换到白色主题时,我的文本不会被绘制,但如果我选择了某个东西,我可以看到文本。此外,当我切换主题时,我的titleText、previous和next与我的黑暗主题相同 以下是我用于主题的代码: <style name="Theme.White" parent="android:Theme.Light"> <

我目前正在制作一个应用程序(安卓1.6),可以在两个不同的主题之间切换。 我做了一个自定义主题,将Android light主题作为父主题! 问题是,当我切换到白色主题时,我的文本不会被绘制,但如果我选择了某个东西,我可以看到文本。此外,当我切换主题时,我的titleText、previous和next与我的黑暗主题相同

以下是我用于主题的代码:

<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>  

@颜色/文字\u颜色\u深色
@颜色/文字\u颜色\u深色
@样式/文本\上一页
@样式/文本\常规
@样式/文本标题
@样式/文本\u下一步
@样式/页背
@款式/白背
@安卓:颜色/主文本光
这是我的风格:

<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>

@颜色/文字颜色
@颜色/默认值\u文本\u颜色\u 2
@颜色/文字\u颜色\u深色
@颜色/文字\u颜色\u深色
@可绘制/白色背景
@可抽出式/白色集装箱
10便士
我还使用了我的res/drawable文件夹中的两个资源。在标准主题中一切都很好,但一旦我切换到灯光主题,我的文本就会消失。
有什么我做错了吗?

从上面的代码片段中,您将背景和文本设置为相同的颜色,即“color/text\u color\u dark”,它们应该是不同的

    <item name="android:colorBackground">@color/text_color_dark</item>
    <item name="android:textColor">@color/text_color_dark</item>
@color/text\u color\u深色
@颜色/文字\u颜色\u深色

好的,我做了一些只起部分作用的事情。在我的main.xml中代替编写android:textColor/@color/。。。我写入style=“?normalText”,并在stlyes中声明一个样式normalText\u default和一个normalText\u white。然后在两个主题中添加一个主题项normalText。这只适用于我现在设置黑色textColor的白色主题,但我的默认主题对我给文本的值没有任何作用。它只是将所有颜色设置为灰色/灰白色!!