ListFragment OnListItemClick not being called

后端 未结 11 1470
盖世英雄少女心
盖世英雄少女心 2020-11-27 05:53

I have a class that extends ListFragment, and it overrides the OnListItemClick method. I am also doing this in another ListFragment the same way (and the method gets called)

11条回答
  •  鱼传尺愫
    2020-11-27 06:38

    Echoing what @auselen said above, in my case I had android:textIsSelectable="true" set in a TextView, and it was stealing the callback.

    Setting this to false solved the problem.

提交回复
热议问题