我有一个微调视图。我将其适配器设置为扩展基本适配器的 customAdapter。但是适配器的 get view 方法没有被调用。`
public class CustomSpinnerAdapter extends BaseAdapter {
private Context mContext;
private LayoutInflater mInflater;
private TextView mLine1, mLine2;
private String mEmptyString = "--";
public CustomSpinnerAdapter(Context context) {
super();
mContext = context;
mInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// TODO Auto-generated constructor stub
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
return view;
}}
然后我通过 setAdapter() 设置适配器。