//第一个适配器写这两个方法
public interface SetOnItem{
void setonitem(View view,int postion);
}
private SetOnItem setOnItem;
public void setSetOnItem(SetOnItem setOnItem){
this.setOnItem=setOnItem;
}
//在主页面写条目点击
diAdapter.setSetOnItem(new DiAdapter.SetOnItem() {
@Override
public void setonitem(View view, int postion) {
String regionId = result.get(postion).getRegionId();
diePresenter.requestdata(regionId);
dieAdapter.notifyDataSetChanged();
}
});