Beispiel #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView          = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.categorie_row, parent, false);
            CategorieViewHolder vh = new CategorieViewHolder(itemView, OnClick);

            return(vh);
        }
Beispiel #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            CategorieViewHolder vh = holder as CategorieViewHolder;

            vh.NameCategorie.Text = Categories[position];
        }