lv.setOnClickListener(new OnClickListener(){
public void onClick(View v){
}
});
Does v
refer to the ListView lv
or the specific item selected in the list?
I believe that v
refers to the whole ListView
. To add a click handler for an item, you want to use AdapterView.setOnItemClickListener.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With