I have the following code:
protected override void OnCreate (Bundle bundle)
{
progress = ProgressDialog.Show(this, \"\", \"Loading...\");
progress.Se
I also managed to get though this problem by setting the "view.Click" handler inside the adapter::GetView function. Seems to work as well.
public class TaskListAdapter : BaseAdapter {
Activity context = null;
IList tasks = new List();
public TaskListAdapter (Activity context, IList tasks) : base ()
{
this.context = context;
this.tasks = tasks;
}
[...]
public override Android.Views.View GetView (int position, Android.Views.View convertView, Android.Views.ViewGroup parent)
{
var view = (convertView ??
context.LayoutInflater.Inflate(...));
view.FindViewById<..>(Resource.Id.NameText).SetText ("...", TextView.BufferType.Normal);
view.Click += (sender, e) =>
{
int a=0;
a++; //breakpoint location is being hit.
};
return view;
}
}
}