I have a custom listView defined like this
public class DDListView extends ListView implements OnScrollChangedListener {
than I make an instance of it with name mExampleList I set onLongClickListener but it never get called, where is my problem ?
mExampleList.setOnLongClickListener(new OnLongClickListener() {
public boolean onLongClick(View v) {
// TODO Auto-generated method stub
Log.v("vvv", "sdfsdf");
return false;
}
});
I think you want to be using OnItemLongClickListener instead of OnClickListener
.
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