Tout d'abord, cacheColorHint
n'a rien à voir avec le style. Essayez de regarder Romain Guy's ListView presentation on the GoogleIO 2010. Vous comprendrez beaucoup avec ça.
A propos du style:
J'ai changé quelques petites choses sur mon application.
Voir le ListView:
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:headerDividersEnabled="false"
android:footerDividersEnabled="true"
android:divider="@drawable/list_divider"
android:dividerHeight="1dip"
android:cacheColorHint="#FFFFFF"
/>
Explication succincte: Je viens de quitter la footerDivider et a changé mon diviseur à un gradient.
drawable/list_divider:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<gradient
android:startColor="#000000"
android:centerColor="#CCCCCC"
android:endColor="#FFFFFF"
android:height="1px"
android:angle="0" />
</shape>
</item>
</layer-list>
RowLayout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@android:color/white">
Explication: Ajouté Un fond blanc.
C'est génial ... Merci beaucoup .. + 10 pour ça :) –