Ejemplo n.º 1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            VokabelViewHolder vh = holder as VokabelViewHolder;

            //Load Text into Specific Cards
            vh.native.Text  = vocabList[position].side1;
            vh.foreign.Text = vocabList[position].side2;
        }
Ejemplo n.º 2
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            // Inflate the CardView for the Elements:
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.VokabelCard, parent, false);

            // Create a ViewHolder to hold view references inside the CardView:
            VokabelViewHolder vh = new VokabelViewHolder(itemView);

            //Handle Creation of Cards
            vh.ItemView.Click += delegate
            {
                //Handle Editing
                //ToDo:
            };

            //Return View Holder
            return(vh);
        }