アダプタを使用してカスタムリストビューを使用しています.Nexus 7ではすべてが素晴らしいようですが、HTC Incredible 2では問題が発生しています私の背景色が変わります。ここで私のXMLファイルにcacheColorHintが設定されています。私も#AA00000で試しました。助言がありますか?私もsetCacheColorHint経由でアクティビティに設定しようとしましたが、まだ動作するものはありません。Androidリストビューの背景色が変更されました - colorCacheHint固定問題
<?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>
それをやりました!どうもありがとうございました。 –
うれしい私は助けることができました....それが働く場合、あなたは答えとしてこれを受け入れることができます:) –
完了します。再度、感謝します。 –