Android list view setOnItemClickListener not working

前端 未结 4 857
执念已碎
执念已碎 2021-01-13 06:04

I want to hide the edit text and button field initially in list view and show that edit text and button for a particular raw in list view when that raw is clicked.So I tried

4条回答
  •  时光说笑
    2021-01-13 06:23

    Add the following attributes to your button

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

    ListView setOnItemClickListener not working by adding button

    Is your edittext taking focus on click of list item? If so remove the focus on edittext also.

提交回复
热议问题