Exemplo n.º 1
0
 public MySimpleTarget(AttachmentsAdapter adapter, AttachmentsAdapterViewHolder viewHolder, int position)
 {
     try
     {
         MAdapter   = adapter;
         ViewHolder = viewHolder;
         Position   = position;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Exemplo n.º 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_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)
     {
         Console.WriteLine(exception);
         return(null);
     }
 }