So benutze ich eine benutzerdefinierte Listview durch einen Adapter, und auf meinem Nexus 7 sieht alles gut aus, aber auf meinem HTC Incredible 2 bin ich in ein Problem, wo meine Hintergrundfarbe ändert sich. Hier ist meine XML-Datei mit dem CacheColorHint-Set. Ich habe es auch mit # AA00000 versucht. Irgendwelche Vorschläge? Ich habe auch versucht, es in der Aktivität über setCacheColorHint, aber nichts funktioniert noch.Android ListView Hintergrund Farbe ändert sich auf Scroll - colorCacheHint nicht beheben Problem
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:background="#AA000000"
android:cacheColorHint="#00000000">
<ImageView android:id="@+id/ExhibitListIcon"
android:contentDescription="Exhibit List Icon"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="center_vertical"
android:layout_marginRight="15dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp" />
<TextView android:id="@+id/ExhibitListTitle"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:textStyle="bold"
android:textSize="22dp"
android:textColor="#FFFFFF"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp" />
</LinearLayout>
Das tat es! Vielen Dank. –
Ich bin froh, dass ich helfen konnte .... Sie könnten dies als Antwort akzeptieren, wenn es funktioniert :) –
Fertig und fertig. Danke noch einmal. –