How to change the settings theme in Android?

TL DR: How can I change the background of the SettingsActivity parameter to white or off-white to fit Holo.Light? Changing the theme of the application changes the text, but keeps the background as black.

I recently changed the theme of my application from standard (Holo) to Holo.Light. Everything seemed to work fine until I opened my SettingsActivity parameter and was met by this:

enter image description here

As you can see, all tests are black on a black background.

This is the original:

enter image description here

I am trying to make settingsActivity on a white background.

I added the following to my manifest:

<application
    ...
    android:theme="@android:style/Theme.Holo.Light" >
    ...
    <activity
        android:name="edu.purdue.SafeWalk.settings.SettingsActivity"
        ...
        android:theme="@android:style/Theme.Holo" >
    </activity>

However, even over-setting the theme does not help.

, , , , . SettingsActivity, XML Java, .

, .

SettingsActivity , Holo.Light?

+4
1

view.setBackgroundColor(getResources().getColor(android.R.color.black));

101 SettingsFragment.java, !

+2

All Articles