public override async void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); var delivered = await Delivery.GetDelivered(); ListAdapter = new DeliveryAdapter(Activity, delivered); }
public override async void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your fragment here var deliveries = await Delivery.GetDeliveries(); ListAdapter = new DeliveryAdapter(Activity, deliveries); }
public async override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your fragment here var deliveries = await Delivery.GetDeliveries(); // get list of delivered packages // ListAdapter a member of (Fragment's inherited-from base class) ListFragment, for correct type of list resource to display //ListAdapter = new ArrayAdapter(Activity, Android.Resource.Layout.SimpleListItem1, deliveries); ListAdapter = new DeliveryAdapter(Activity, deliveries); // use the custom Adapter }