Reputation: 5095
I am trying to create a simple ListView
with shadow to it. My problem is when I scroll the ListView sometimes it's just leave the ListView completely highlighted. Please help me to solve this problem. many thanks.
normally looks like this.
when i finished scrolling looks like this
I have uploaded the sample code here. http://www.2shared.com/file/QOBNvmef/ListViewExample.html
Upvotes: 2
Views: 2442
Reputation: 40416
In your main XML file add this line in list view....
android:cacheColorHint="#00000000"
Your main.xml should be--->
<?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">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="300dip"
android:layout_height="300dip">
<ListView
style="@style/ListView" android:cacheColorHint="#00000000"
android:layout_weight="1" android:id="@+id/ssss"/>
</LinearLayout>
</LinearLayout>
Upvotes: 3