示例#1
0
        // Create new views (invoked by the layout manager)
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {

            //Setup your layout here
            View itemView = null;
            var id = Resource.Layout.item;
            itemView = LayoutInflater.From(parent.Context).
                   Inflate(id, parent, false);

            var vh = new ImageAdapterViewHolder(itemView, OnClick, OnLongClick);
            return vh;
        }
示例#2
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView;

            var id = Resource.Layout.item;

            itemView = LayoutInflater.From(parent.Context).Inflate(id, parent, false);

            var holder = new ImageAdapterViewHolder(itemView, OnClick, OnLongClick);

            return(holder);
        }