views:

178

answers:

1

I have a ListView in my app that has a background image. All of the rows are a semi transparent white (#35FFFFFF). Whenever I scroll the list, the rows turn a light green that obscures the background image until I stop scrolling (usually--sort of unpredictable). Sometimes it flickers between the background image/color and the green. And yes, I have set the cache color hint to #00000000. Any advice about this would be appreciated.

ListView xml:

<ListView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/list"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="7px"        
    android:cacheColorHint="#00000000"
    android:dividerHeight="6px"
    android:"#75ffffff"
    android:background="@drawable/list_bg"
    android:fastScrollEnabled="true"
    />

Row xml:

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/text"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="18px"
    android:textColor="@android:color/black"
    android:gravity="center_vertical"
    android:background="#35ffffff"
    />

Bitmap xml:

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/list_bg_bitmap"
    android:tileMode="repeat"
    android:dither="true"
    />
A: 

I think that this is related to my problem (Stackoverflow thread) and might be a bug in Android. Have you found a workaround yet?

manmal