I already have 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 can I reference the onitemclickListener that already exists for my list?
I do not want to copy all the code and use it again, since it is about 500 lines.
source share