I put a Console.WriteLine()
in GetView()
method of a custom adapter, like so: (Please note the code is in c# and I cant use the duplicate answer because I cant inherit from an abstact method in c#)
public override View GetView(int position, View convertView, ViewGroup parent)
{
View row = convertView;
if (row == null)
{
row = LayoutInflater.From(myContext).Inflate(Resource.Layout.ExerciseRowBig, null, false);
}
Console.WriteLine("Hello");
return row;
}
And the problem is that the debugger shows the message "Hello" twice, even though there is only one item in the ListView. Why? Is it intended?