为您在<代码>/res/ Values/themes.xml上的应用设定习惯主题:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- application theme -->
<style name="CustomTheme" parent="android:style/Theme.Light">
<!-- widget styles -->
<item name="android:listViewStyle">@style/ListView</item>
</style>
<!-- list view -->
<style name="ListView" parent="@android:style/Widget.ListView">
<item name="android:background">#ffffff</item>
<item name="android:cacheColorHint">#ffffff</item>
<item name="android:divider">#cccccc</item>
<item name="android:dividerHeight">1px</item>
<item name="android:listSelector">@drawable/list_selector_background</item>
<item name="android:fadingEdge">none</item>
</style>
</resources>
载于AndroidManifest.xml
。 明确主题:
<application
...
android:theme="@style/CustomTheme" >