這是我的ListView xml文件,我有不同的xml行(每一項listview),沒有任何關係。 listSelector = 「#FFFFFF」:ListView問題,同時點擊
<?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" >
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:listSelector="#ffffff"
android:clickable="false"
android:dividerHeight="1dip"
style="@style/ProgressStyle"
android:cacheColorHint="#00000000"
/>
</LinearLayout>
當我點擊這個列表視圖這是因爲其設置的Android正在成爲白色。但是,當我從XML文件中刪除這個,然後當我點擊,然後我點擊它的項目顯示一些顏色(在我的情況黃色模擬器和紅色的設備)。它不應該顯示,因爲android:clickable =「false設置。有什麼想法,有人嗎?
集cacheColorHint您的列表,以透明(#上00000000)。 – user370305