I already have an onitemclickListener
and it works,
list.setOnItemClickListener( new OnItemClickListener()
{
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3){
...
}
});
however, I need to implement the same functionality from a different button.
How do I reference the onitemclickListener
that already exists for my list ?
I don't want to copy all the code and use it again as it is about 500 lines.
There is performItemClick which does this.
list.performItemClick(list.getChildAt(pos), pos, list.getItemIdAtPosition(pos));
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