// 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 !);
     }
 }
예제 #2
0
 // 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);
     }
 }