コード例 #1
0
ファイル: MainActivity.cs プロジェクト: HamzahMansour/seng499
        OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            PerscriptionViewHolder vh = holder as PerscriptionViewHolder;

            // Set the ImageView and TextView in this ViewHolder's CardView
            // from this position in the photo album:
            vh.label.SetImageResource(_PListing[position].labelID);
            vh.datetime.Text     = _PListing[position].datetime;
            vh.perscription.Text = _PListing[position].perscription;
        }
コード例 #2
0
ファイル: MainActivity.cs プロジェクト: HamzahMansour/seng499
        OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            // Inflate the CardView for the photo:
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.PerscriptionScheduleView, parent, false);

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

            return(vh);
        }