Exemple #1
0
 public MySimpleTarget(AttachmentsAdapter adapter, AttachmentsAdapterViewHolder viewHolder, int position)
 {
     try
     {
         MAdapter   = adapter;
         ViewHolder = viewHolder;
         Position   = position;
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Exemple #2
0
 public MySimpleTarget(AttachmentsAdapter adapter, AttachmentsAdapterViewHolder viewHolder, int position)
 {
     try
     {
         MAdapter   = adapter;
         ViewHolder = viewHolder;
         Position   = position;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Exemple #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_Attachment_View
         var itemView = LayoutInflater.From(parent.Context)?.Inflate(Resource.Layout.Style_Attachment_View, parent, false);
         var vh       = new AttachmentsAdapterViewHolder(itemView, DeleteClick, 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_Attachment_View
         var itemView = LayoutInflater.From(parent.Context)
                        .Inflate(Resource.Layout.Style_Attachment_View, parent, false);
         var vh = new AttachmentsAdapterViewHolder(itemView, OnClick, OnLongClick);
         return(vh);
     }
     catch (Exception exception)
     {
         Crashes.TrackError(exception);
         return(null);
     }
 }