예제 #1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            MainViewHolder mvh = holder as MainViewHolder;
            Bill           b   = bills[position];

            mvh.Name.Text = b.name;
        }
예제 #2
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View billView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.BillRow, parent, false);

            MainViewHolder vh = new MainViewHolder(billView);

            return(vh);
        }