Exemplo n.º 1
0
            OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
            {
                ScheduleViewHolder vh = holder as ScheduleViewHolder;

                // Set the TextView in this ViewHolder's CardView
                vh.EventTime.Text = _EventList[position].EventTime;
            }
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.ScheduleCardView, parent, false);

            ScheduleViewHolder vh = new ScheduleViewHolder(itemView);

            return(vh);
        }
Exemplo n.º 3
0
            OnCreateViewHolder(ViewGroup parent, int viewType)
            {
                // Inflate the CardView for the event:
                View itemView = LayoutInflater.From(parent.Context).
                                Inflate(Resource.Layout.EventListView, parent, false);

                // Create a ViewHolder to find and hold these view references, and
                // register OnClick with the view holder:
                ScheduleViewHolder vh = new ScheduleViewHolder(itemView, OnClick);

                return(vh);
            }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            ScheduleViewHolder vh = holder as ScheduleViewHolder;

            vh.hourAndScheduleTextView.Text = /*listOfSchedules[position].Hour + " " + */ listOfSchedules[position].ShortDescription;
        }