setOnItemClickListener() not working on custom ListView @ Android

前端 未结 6 1814
刺人心
刺人心 2020-12-01 09:55

I have Implemented a custom ListView by extending LinearLayout for every row. Every row has a small thumbnail, a text and a check box.

6条回答
  •  再見小時候
    2020-12-01 10:20

    Set these properties:

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

    for your all UI elements in your list_item.xml file.

    if this is not resolved in your adapter set:

        v.imageView.setFocusable(false);
        v.imageView.setFocusableInTouchMode(false);
    

提交回复
热议问题