Код: Выделить всё
public class NumbersViewAdapter extends ArrayAdapter {
// invoke the suitable constructor of the ArrayAdapter class
public NumbersViewAdapter(@NonNull Context context, ArrayList arrayList) {
// pass the context and arrayList for the super
// constructor of the ArrayAdapter class
super(context, 0, arrayList);
}
Код: Выделить всё
NumbersViewAdapter(@NonNull Context context, ArrayList arrayList)
Код: Выделить всё
super(context, 0, arrayList)
Код: Выделить всё
public ContactListAdapter(@NonNull Context context, int resource, @NonNull ContactInfo[] objects) {
super(context, resource, objects);
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... -the-super