public class ListViewAdapter : BaseAdapter<IMenuItemsType>
{
private Context context;
private List<IMenuItemsType> items;
private LayoutInflater inflater;
public ListViewAdapter(Context context, List<IMenuItemsType> items) : base(context,0,items)
{
this.context = context;
this.items = items;
this.inflater = (LayoutInflater)this.context.GetSystemService(Context.LayoutInflaterService);
}
base(context,0,items)
不包含 接受 3 个参数的构造函数
需要使用ArrayAdapter
,而不是BaseAdapter
。
这就是您找到(context, resource, list)
构造函数的地方。