Ejemplo n.º 1
0
        protected override void OnBindData(RecyclerView.ViewHolder viewHolder, int position, RecommendBookList.RecommendBook item)
        {
            EasyRVHolder holder = viewHolder as EasyRVHolder;

            if (!Settings.IsNoneCover)
            {
                holder.setRoundImageUrl(Resource.Id.ivBookListCover, Constant.IMG_BASE_URL + item.cover, Resource.Drawable.cover_default);
            }

            holder.setText(Resource.Id.tvBookListTitle, item.title)
            .setText(Resource.Id.tvBookAuthor, item.author)
            .setText(Resource.Id.tvBookListTitle, item.title)
            .setText(Resource.Id.tvBookListDesc, item.desc)
            .setText(Resource.Id.tvBookCount, Java.Lang.String.Format(mContext.GetString(Resource.String
                                                                                         .book_detail_recommend_book_list_book_count), item.bookCount))
            .setText(Resource.Id.tvCollectorCount, Java.Lang.String.Format(mContext.GetString(Resource.String
                                                                                              .book_detail_recommend_book_list_collector_count), item.collectorCount));
            // TODO: NoDoubleClickListener
            holder.Click += (sender, e) => {
                itemClickListener.onItemClick(holder.getItemView(), position, item);
            };
        }
Ejemplo n.º 2
0
 public void OnClick(View v)
 {
     findAdapter.itemClickListener.onItemClick(holder.getItemView(), position, item);
 }