Android list view setOnItemClickListener not working

前端 未结 4 913
执念已碎
执念已碎 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:17

    In my Case setOnItemClickListener works fine in Android Versions Upto 5.1.1 But Having On Android 6.0.1. At last I found the solution Try this
    Remove these Lines from Your XML Layout

    android:orientation="vertical"
    tools:context=".ManageRequest"
    android:contextClickable="true"
    

    Works for Me in Android Version 6.0.1 Hope Your Problems Solved ..!!! Happy Coding :)

提交回复
热议问题