public override View GetView(int position, View convertView, ViewGroup parent)
        {
            View row;

            row = inflater.Inflate(Resource.Layout.CustomListView, parent, false);
            AnimalAndroid a     = data [position];
            var           image = row.FindViewById <ImageViewAsync> (Resource.Id.imageAnimalList);

            if (!string.IsNullOrEmpty(a.Uri))
            {
                ImageService.LoadFile(a.Uri).DownSample(100, 100).Into(image);
            }

            var eName = row.FindViewById <TextView> (Resource.Id.textView_Name);
            var eDesc = row.FindViewById <TextView> (Resource.Id.textView_Description);

            eName.SetText(a.name, TextView.BufferType.Normal);
            eDesc.SetText(a.desc, TextView.BufferType.Normal);

            return(row);
        }
예제 #2
0
 public void SetAnimal(AnimalAndroid a)
 {
     animalAndroid = a;
 }