I am testing my app but when I choose settings my preferences screen shows White instead of the default black theme. Just with my app because any other app shows the right black theme in preference screen.
1603 次
2 回答
3
<style name="PreferencesTheme">
<item name="android:background">#000000</item>
</style>
add the above code in value -> styles and then add
<activity android:name=".Preferrence" android:theme="@android:style/Theme.Black"></activity>
in your manifest file it will solve your problem :)
于 2013-03-30T11:20:30.127 回答
0
I guess you using the Light Theme in your AndroidManifest.xml. For those PreferenceActivity set the Theme like this:
<activity
android:name="PreferenceActivity"
android:theme="@android:style/Theme.Holo" >
</activity>
于 2013-03-30T11:06:00.090 回答