Onclicklistener
A Listener Object that reacts to 'click' events triggered from an input device, such as a Mouse
Onitemclicklistener
OnItemClickListener is an Android listener that can be registered on subclasses of AdapterView to receive click events on their child views.
Common if viewholder
Example |
---|
"But the better choice would be to set items non focusable and use onitemclicklistener or make them focusable and use an onclicklistener on the views;also the onclicklistener should not be set for the listview" from question Add your own listener to a list |
"Also it s more common to use onitemclicklistener for a listview;if you use a viewholder for your listview then onclicklistener is better" from question CheckBox checked/unchecked state changes on scroll listview BaseAdapter |
Others
Example |
---|
If you still would love to manage onclicklistener i will tell why onitemclicklistener is much better than onclicklistener from question Android setOnItemClickListener vs setOnClickListener |
Is using onclicklistener in arrayadapter worse than onitemclicklistener from question * (no title is found for this review) |