Background
I'm adding a theme chooser of "Holo" and "Holo Light" (and maybe the dark action bar too) for my app "App Manager". For now I first try them out, via XML files.
The problem
I'm using the support library by Google and try out the themes, yet no matter what attributes and themes I use, the textViews' color on my listView have the wrong color.
The listView contains 2 TextViews that are defined as such:
<TextView
android:id="@+id/appLabelTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/isSystemAppImageView"
android:layout_toRightOf="@+id/appIconImageView"
android:ellipsize="marquee"
android:text="label"
android:textAppearance="?android:attr/textAppearanceLarge"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/appDescriptionTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/appLabelTextView"
android:layout_below="@+id/appLabelTextView"
android:layout_toLeftOf="@+id/isSystemAppImageView"
android:ellipsize="marquee"
android:text="description"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText" />
Theme.AppCompat.Light
and Theme.AppCompat
:
Same happens when I do it all programmatically, and when I use ActionBarSherlock library.
Here's the themes configurations I use (tried ActionBarSherlock this time, but the same occurs for the normal support library) :
<style name="BaseTheme" parent="@style/Theme.Sherlock.Light"></style>
<style name="AppTheme" parent="@style/BaseTheme">
<item name="android:listSeparatorTextViewStyle">@style/PreferenceListHeader</item>
<item name="android:windowBackground">@color/normal_window_background</item>
</style>
and the manifest:
<application
android:name="com.lb.app_manager.utils.App"
android:allowBackup="true"
android:description="@string/app_description"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
The activity I've shown here doesn't have any code or XML that sets the theme to be different from what is written above.
What I've tried
I've tried to check out the samples and saw no apparent difference between the XMLs and code. They work just fine...
Also, for some reason, the preferences activities are shown just fine.
Same issue exists on ActionBarShelock library.
The question
How could it be ? what should be done to fix it?