要想listView的item与其上的button皆能得到焦点响应:

在listView item 的布局中:

<RelativeLayout>中

android:descendantFocusability="blocksDescendants"

<ImageButton>中

android:focusable="false"

参考:【Android】ListView与Button的共存问题解决

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-10
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
相关资源
相似解决方案