FileDocCategorySizeDatePackage
DeliveryReportAdapter.javaAPI DocAndroid 1.5 API1994Wed May 06 22:42:46 BST 2009com.android.mms.ui

DeliveryReportAdapter

public 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.ViewgetView(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;