ListView setOnItemClickListener not working in custom list view

前端 未结 3 836
感动是毒
感动是毒 2021-01-05 14:15

I have a list view with two text view and one edit text in each row , list view setOnItemClickListener() is not working.

Here My Java Code.

3条回答
  •  [愿得一人]
    2021-01-05 14:42

    Set these properties

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

    for your all UI elements in your create_list_item xml file.

    Also remove that properties from ListView.

    So your ListView will be

     
     
    

提交回复
热议问题