public override View GetView(int position, View convertView, ViewGroup parent) { MasterAdapterHelper helper = null; if (convertView == null) { convertView = activity.LayoutInflater.Inflate (Android.Resource.Layout.SimpleListItem1, null); helper = new MasterAdapterHelper (); helper.Title = convertView.FindViewById<TextView> (Android.Resource.Id.Text1); convertView.Tag = helper; } else { helper = convertView.Tag as MasterAdapterHelper; } helper.Title.Text = items [position].ToString (); return convertView; }
public override View GetView(int position, View convertView, ViewGroup parent) { MasterAdapterHelper helper = null; if (convertView == null) { convertView = activity.LayoutInflater.Inflate(Android.Resource.Layout.SimpleListItem1, null); helper = new MasterAdapterHelper(); helper.Title = convertView.FindViewById <TextView> (Android.Resource.Id.Text1); convertView.Tag = helper; } else { helper = convertView.Tag as MasterAdapterHelper; } helper.Title.Text = items [position].ToString(); return(convertView); }