// create a new ImageView for each item referenced by the Adapter public override View GetView(int position, View convertView, ViewGroup parent) { var view = new TallVisitView(frag.Activity, null); view.Visit = frag.Visits[position]; view.LayoutParameters = new Gallery.LayoutParams(frag.Resources.DisplayMetrics.WidthPixels / 3 - 20, 1000); return(view); }
public VisitCell(RectangleF frame) : base(frame) { tallVisitView = new TallVisitView(); tallVisitView.TouchUpInside += (sender, args) => { if (Tapped != null) { Tapped(Visit); } }; tallVisitView.AddParallax(-20, 20); ContentView.AddSubview(tallVisitView); }