我希望在一个方法中使用两个ArrayList。
public CheckVisitAdapter(ArrayList<VisitDetails> visitDetails, Context
context){
this.context = context;
this.visitDetails=visitDetails;
}
public CheckVisitAdapter(ArrayList<Visitor> visitors, Context context){
this.context = context;
this.visitors=visitors;
}
答案 0 :(得分:0)
尝试一下
将两个ArrayList都作为参数传递。
public CheckVisitAdapter(ArrayList<VisitDetails> visitDetails, ArrayList<Visitor> visitors, Context context){
this.context = context;
this.visitDetails=visitDetails;
this.visitors=visitors;
}