예제 #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View v = LayoutInflater.From(parent.Context)
                     .Inflate(itemRes, parent, false);

            v.LayoutParameters = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            var vh = new AnnotationListAdaptorViewHolder(v, this);

            return(vh);
        }
 public ItemClickListener(AnnotationListAdaptorViewHolder vh)
 {
     this.vh = vh;
 }