I have a background color applied to a ListView
<style name="CKButtons">
<item name="android:windowBackground">@color/window_background</item>
</style>
but everytime the list is scrolled the background color changes back to the system default (black). When the scrolling stops the color goes back to @color/window_background
.
The style is applied in AndroidManifest.xml
:
<activity android:name=".event.EventList"
android:theme="@style/CKButtons"></activity>
and my ListView looks like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/android:list"/>
<TextView
android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/eventlist_no_items"/>
</LinearLayout>
How can I prevent this from happening?