Пример #1
0
        OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            NewsViewHolder vh = holder as NewsViewHolder;

            vh.Image.SetImageBitmap(mNewspaper.item[position].urlImg);
            // ISpanned sp = Android.Text.Html.FromHtml(mNewspaper.item[position].description);
            vh.Detalhe.Text = Html.FromHtml(mNewspaper.item[position].title + @"<\br>" + mNewspaper.item[position].description).ToString();
        }
Пример #2
0
        OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            // Inflate the CardView for the news:
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.NewsItem, parent, false);

            NewsViewHolder vh = new NewsViewHolder(itemView, OnClick);

            return(vh);
        }