示例#1
0
 // 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 !);
     }
 }
示例#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_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);
     }
 }