onListItemClick is not working for listview?

前端 未结 9 2177
一整个雨季
一整个雨季 2020-11-30 11:29

Hi onListItemClick for listview is not working. Here i am fetching datas from SQLite using AsyncTask and displaying it in a list view. And i wants to do some actions when a

9条回答
  •  感情败类
    2020-11-30 12:23

    I had the same symptoms, and it drove me crazy for a while. Adding android:focusable="false" for the list items as suggested above fixed the problem for me.

    But the real issue was that I had set android:textIsSelectable="true" for my list items (in response to a Warning generated by Eclipse); setting android:textIsSelectable="false" fixed the problem for me, and I did not need the android:focusable="false" option at all.

提交回复
热议问题