Example #1
0
        OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.recycler_item, parent, false);
            RecyclerViewHolder vh = new RecyclerViewHolder(itemView);

            return(vh);
        }
Example #2
0
        OnBindViewHolder(Android.Support.V7.Widget.RecyclerView.ViewHolder holder, int position)
        {
            RecyclerViewHolder vh = holder as RecyclerViewHolder;

            vh.Image.SetImageResource(resId);
            vh.Caption.Text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp" +
                              "or incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercit" +
                              "ation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in repreh" +
                              "enderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Excepteur sint occaeca" +
                              "t cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
        }