DeliveryReportAdapterpublic class DeliveryReportAdapter extends android.widget.ArrayAdapter The back-end data adapter for DeliveryReportActivity. |
Fields Summary |
---|
static final String | LOG_TAG |
Constructors Summary |
---|
public DeliveryReportAdapter(android.content.Context context, List items)
super(context, R.layout.delivery_report_list_item, R.id.recipient, items);
|
Methods Summary |
---|
public android.view.View | getView(int position, android.view.View view, android.view.ViewGroup viewGroup)
DeliveryReportListItem listItem;
DeliveryReportItem item = this.getItem(position);
if (view == null) {
LayoutInflater factory = LayoutInflater.from(getContext());
listItem = (DeliveryReportListItem) factory.inflate(
R.layout.delivery_report_list_item, viewGroup, false);
} else {
if (view instanceof DeliveryReportListItem) {
listItem = (DeliveryReportListItem) view;
} else {
return view;
}
}
listItem.bind(item.recipient, item.status);
return listItem;
|
|