onListItemClick is not working for listview?

前端 未结 9 2141
一整个雨季
一整个雨季 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:30

    I struggled as I by mistake put android:inputType="textCapWords" with the textbox after removing it it is fixed

    0 讨论(0)
  • 2020-11-30 12:33

    Another solution. if you have many child-control,and its to trouble to add android:focusable="false" to every child-control,you can add android:descendantFocusability="blocksDescendants" to its parent-control.try it.

    0 讨论(0)
  • 2020-11-30 12:34

    I was also struggling with this issue and none of the suggested solutions worked. My problem was that I did an override for onViewCreated but didn't call super.onViewCreated(view, savedInstanceState);. Hopefully this will help someone else so they don't spend hours trying to figure out what's going on.

    0 讨论(0)
提交回复
热议问题