public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.itemFlightNearby, parent, false); NearbyViewHolder ch = new NearbyViewHolder(itemView); return(ch); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { NearbyViewHolder ch = holder as NearbyViewHolder; ch.bind(flights[position]); }