Android - delayed clicks in ListView

前端 未结 6 1569
忘了有多久
忘了有多久 2021-02-04 03:45

I have the following structure in my app:

FragmentActivity with ViewPager holding multiple fragments managed by FragmentStatePagerAdapter using

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 04:06

    What worked for me was assigning an OnItemClickListener to the ListView through setOnItemClickListener, rather than an OnClickListener to the individual list items. Obviously the button still needs its own OnClickListener, but I haven't tested that scenario.

提交回复
热议问题