android:clickable=”true” mean’s that it’s not clickable?

When you set the OnItemClickListener, the event onItemClicked will only be called if the child of the ListView does not have the OnClickListener set. Setting clickable to true will provide the child view (in this case your TextView) with an empty OnClickListener. Since the TextView‘s OnClickListener is set the OnItemClickListener will not be called.

Leave a Comment