ListView中嵌入Button后,如果ItemClick不能触发,

请在ListView子项目布局文件中的根控件中添加android:descendantFocusability="blocksDescendants"  !

还有就是只可以点解里面的checkbox不可以点解item的话在  checkbox里面加clickfoucs="false"就可以了

相关文章:

  • 2021-07-18
  • 2022-12-23
  • 2021-12-05
  • 2021-05-19
  • 2022-12-23
  • 2021-08-30
  • 2021-07-13
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
相关资源
相似解决方案