ListView + ImageButton + descendantFocusability

我的未来我决定 提交于 2019-11-29 18:12:02

I believe in order to have BOTH the listView row and the ImageButton clickable, you'll need to set both of these on the ImageButton object:

  android:focusable="false"
  android:focusableInTouchMode="false"

Give that a shot. I'd also try using an onClickListener on your ImageButton instead of the touchListener.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!