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