I have an activity that extends PreferenceActivity.
My theme : android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" is applied to the application level in the Manifest file.
Everything is getting the desired theme except the "PreferenceScreen" elements of "PreferenceCategory". They are still having the default black background. In simple words, the main Preference Category screen which has the parent Preference Screens are getting the theme but if I click on any of the PreferenceScreens to go to their element preferences(EditText etc etc), they are not getting the theme...
Any Idea why this might be happening?
The structure or preferences.xml is something like this :
<PreferenceCategory>
<PreferenceScreen>
<EditTextPreference>
...
</EditTextPreference>
<EditTextPreference>
...
</EditTextPreference>
...
</PreferenceScreen>
<PreferenceScreen>
...
</PreferenceScreen>
</PreferenceCategory>
It's a bug in earlier Android versions (see also http://code.google.com/p/android/issues/detail?id=4611).
If I remember correctly themes aren't properly applied to a PreferenceActivity on all Android 2.x versions. One way to fix this is to set adjust the colors/fonts etc. yourself, but there is also a workaround described in the comments of the bugreport. Themes should work properly on Android 3.0 and later.