在android中,listview行未获得焦点

在android中,listview行未获得焦点,android,android-listview,Android,Android Listview,下面是listview适配器的代码 正在发生的事情: 这里有一个图像视图,点击我改变它的背景 但是假设我点击了第一行imageview,它会改变背景 &非物质性当我点击下一行图片查看它不会 更改背景,但当我第二次单击第二行时 imageview更改背景 所以我的注意力有问题,我该如何解决 我想如果你想让你的列表项比你所需要的更容易点击:让你的listview不可聚焦 请为列表视图尝试此xml声明 <ListView android:layout_width="fill_p

下面是listview适配器的代码

正在发生的事情: 这里有一个图像视图,点击我改变它的背景 但是假设我点击了第一行imageview,它会改变背景 &非物质性当我点击下一行图片查看它不会 更改背景,但当我第二次单击第二行时 imageview更改背景 所以我的注意力有问题,我该如何解决
我想如果你想让你的列表项比你所需要的更容易点击:让你的listview不可聚焦 请为列表视图尝试此xml声明

   <ListView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:descendantFocusability="afterDescendants"
      android:focusable="false" />
   <ListView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:descendantFocusability="afterDescendants"
      android:focusable="false" />