Constructorparamcontext The context where the View associated with this Adapter is runningparamdata A list with AccountElements data type. The list contains the data of each account and the each member of AccountElements will correspond to one item view. mContext = context; mData = data;
mContext = context; mData = data;
return mData.size();
return mData.get(position);
return position;
AccountItemView view; if (convertView == null) { view = new AccountItemView(mContext); } else { view = (AccountItemView) convertView; } AccountElements elements = (AccountElements) getItem(position); view.setViewItem(elements); return view;
mData = data; notifyDataSetChanged();