一、Adapter里面自定义监听PRivate OnTestClickListener onTestClickListener;public void setOnTestClickListener(OnTestClickListener onTestClickListener){ this.onTestClickListener=onTestClickListener;}public interface OnTestClickListener{ void onTest1(); void onTest2(); void onTest3();}二、在页面实现方法adapter.setOnTestClickListener(new OnTestClickListener){ @Override public void onTest1() {//dosomething} @Override public void onTest2() {//dosomething} @Override public void onTest3() {//dosomething}}
新闻热点
疑难解答