0
我將自己佈局的背景顏色,爲白色。列表視圖不可聚焦。如果我做了背景顏色爲白色
然後我通過擴展BaseAdapter類創建列表。 但我的列表項不可作爲焦點(當我將光標移動到它不顯示焦點顏色的任何項目)。
,但如果我刪除佈局的背景顏色標籤,它的工作原理是fine.below我的XML佈局。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" android:background="@color/color_white">
<ImageView
android:id="@+id/icon"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:visibility="visible" />
<TextView
android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10px"
android:textColor="@color/color_white"
android:textSize="20dp"
android:visibility="visible" />
</LinearLayout>
請大家幫忙。