Ejemplo n.º 1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            //Sets the image to the one with iconId, sets text to the instruction at the given position
            NavigationInstructionViewHolder vh = holder as NavigationInstructionViewHolder;

            vh.Icon.SetImageResource(Instructions[position].Key);
            vh.Instructions.Text = Instructions[position].Value;
        }
Ejemplo n.º 2
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            //Generates a new view using the NavigationRowLayout
            View view = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.NavigationRowLayout, parent, false);
            //Makes a new custom viewholder for the new view
            NavigationInstructionViewHolder vh = new NavigationInstructionViewHolder(view);

            return(vh);
        }