// Create new views (invoked by the layout manager) public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { try { //Setup your layout here >> Style_PageCircle_view View itemView = LayoutInflater.From(parent.Context)?.Inflate(Resource.Layout.Style_Suggestions_view, parent, false); var vh = new SuggestionsUserAdapterViewHolder(itemView, FollowButtonClick, 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_PageCircle_view View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.Style_Suggestions_view, parent, false); var vh = new SuggestionsUserAdapterViewHolder(itemView, Click, LongClick); return(vh); } catch (Exception exception) { Console.WriteLine(exception); return(null); } }