// Create new views (invoked by the layout manager) public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { try { //Setup your layout here >> Style_Image_Simple var itemView = LayoutInflater.From(parent.Context)?.Inflate(Resource.Layout.Style_Image_Simple, parent, false); var vh = new UserPhotosAdapterViewHolder(itemView, Click, LongClick); return(vh); } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); return(null !); } }
// Create new views (invoked by the layout manager) public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { try { //Setup your layout here >> Style_Image_Simple var itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.Style_Image_Simple, parent, false); var vh = new UserPhotosAdapterViewHolder(itemView, Click, LongClick); return vh; } catch (Exception exception) { Console.WriteLine(exception); return null; } }