Android 如何为自定义ListView项目启用默认hightlight?

Android 如何为自定义ListView项目启用默认hightlight?,android,Android,ListView项有一个自定义布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="10dip"

ListView项有一个自定义布局:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:padding="10dip"
    android:background="@android:color/white"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textStyle="bold"
        android:textAppearance="?android:attr/textAppearanceLarge" />

</LinearLayout>

现在,当我按项目单击时,我看不到任何突出显示;我知道我可以使用选择器来实现,但是否有最简单的方法来启用默认高亮显示

是的。删除行:

android:background="@android:color/white"

也发布ListView代码。我认为属性
android:listSelector=”“
可能相关。现在,我不能。我需要将项目设置为白色,然后使用默认颜色为白色的XML stateListDrawable。