private void displayClientForTask(string clientId) { ClientRecord client = Config.getClient(clientId, this); var imageBitmap = GetImageBitmapFromUrl(client.getMap()); FindViewById <TextView>(Resource.Id.textViewAddress).Text = "🗺 - " + client.getAddress(); FindViewById <TextView>(Resource.Id.textViewTelephone).Text = "📞 - " + client.getTelephone(); FindViewById <TextView>(Resource.Id.textViewPlanning).Text = "📝 - " + client.getPlanning(); FindViewById <ImageView>(Resource.Id.imageViewMap).SetImageBitmap(imageBitmap); }
public override View GetView(int position, View view, ViewGroup parent) { var item = items[position]; if (view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.ListRow, null); } ClientRecord client = Config.getClient(item.client_id, Config.getActivity(view)); if (client != null) { view.FindViewById <TextView>(Resource.Id.Text1).Text = item.taskName; } view.FindViewById <TextView>(Resource.Id.Text2).Text = client.getAddress(); view.FindViewById <TextView>(Resource.Id.Text3).Text = item.taskDate; return(view); }