I have an adapter which extends ArrayAdapter<T>
and want to inject into them LayoutInflater
. Code presented below, but inflater is always null
public abstract class MyAdapter<T> extends ArrayAdapter<T> {
@Inject
protected LayoutInflater inflater;
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// inflater here is null
}
}