// Create new views (invoked by the layout manager) public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { try { //Setup your layout here >> Style_Feeling_View var itemView = LayoutInflater.From(parent.Context)?.Inflate(Resource.Layout.Style_Feeling_View, parent, false); var vh = new FeelingsAdapterViewHolder(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_Feeling_View var itemView = LayoutInflater.From(parent.Context) .Inflate(Resource.Layout.Style_Feeling_View, parent, false); var vh = new FeelingsAdapterViewHolder(itemView, OnClick, OnLongClick); return(vh); } catch (Exception exception) { Crashes.TrackError(exception); return(null); } }