Question:
How do we pass a OnLongClickListener into an adapter when setting it in the activity?
Adapter's constructor:
public Activity mcontext;
public View.OnLongClickListener LongClicking;
public SubjectsAdapter(Activity context, View.OnLongClickListener longClick) {
this.mcontext = context;
this.LongClicking = longClick;
}
In the activity:
adapter = new SubjectsAdapter(this, /*A OnLongClickListener here */ );
I know this is probably a dense question, I'm relatively new to android