Esempio n. 1
0
        public void showBookReviewDetail(BookReview data)
        {
            Glide.With(mContext)
            .Load(Constant.IMG_BASE_URL + data.review.author.avatar)
            //.Placeholder(Resource.Drawable.avatar_default)
            .Transform(new GlideCircleTransform(mContext))
            .Into(headerViewHolder.ivAuthorAvatar);

            headerViewHolder.tvBookAuthor.Text = (data.review.author.nickname);
            headerViewHolder.tvTime.Text       = (FormatUtils.getDescriptionTimeFromDateString(data.review.created));
            headerViewHolder.tvTitle.Text      = (data.review.title);
            headerViewHolder.tvContent.Text    = (data.review.content);

            Glide.With(mContext)
            .Load(Constant.IMG_BASE_URL + data.review.book.cover)
            //.Placeholder(Resource.Drawable.cover_default)
            .Transform(new GlideRoundTransform(mContext))
            .Into(headerViewHolder.ivBookCover);
            headerViewHolder.tvBookTitle.Text = (data.review.book.title);

            headerViewHolder.tvHelpfullYesCount.Text = data.review.helpful.yes.ToString();
            headerViewHolder.tvHelpfullNoCount.Text  = data.review.helpful.no.ToString();

            headerViewHolder.tvCommentCount.Text = (Java.Lang.String.Format(mContext.GetString(Resource.String.comment_comment_count), data.review.commentCount));
            headerViewHolder.rlBookInfo.Click   += (sender, e) =>
            {
                BookDetailActivity.startActivity(this, data.review.book._id);
            };

            headerViewHolder.ratingBar.setCountSelected(data.review.rating);
        }
 public override void onItemClick(int position)
 {
     SearchDetail.SearchBooks data = mAdapter.getItem(position);
     BookDetailActivity.startActivity(this, data._id);
 }
 public override void onItemClick(int position)
 {
     BookDetailActivity.startActivity(this, mAdapter.getItem(position).Book._id);
 }
Esempio n. 4
0
 public void onClickIntroduce(object sender, EventArgs e)
 {
     gone(rlReadAaSet, rlReadMark);
     BookDetailActivity.startActivity(mContext, bookId);
 }