Example #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewItem)
        {
            View view;

            if (viewItem == 0)
            {
                view = LayoutInflater.From(_context).Inflate(Resource.Layout.AboutListItem, parent, false);
            }
            else
            {
                view = LayoutInflater.From(_context).Inflate(Resource.Layout.AboutListItemDiv, parent, false);
            }
            MyViewHolder holder = new MyViewHolder(view, viewItem);

            return(holder);
        }
Example #2
0
 public override void OnViewRecycled(Java.Lang.Object holder)
 {
     base.OnViewRecycled(holder);
     MyViewHolder myViewHolder = holder as MyViewHolder;
 }