public HeaderViewHolder(View view)
 {
     ivAvatar       = view.FindViewById <ImageView>(Resource.Id.ivBookCover);
     tvNickName     = view.FindViewById <TextView>(Resource.Id.tvBookTitle);
     tvTime         = view.FindViewById <TextView>(Resource.Id.tvTime);
     tvTitle        = view.FindViewById <TextView>(Resource.Id.tvTitle);
     tvContent      = view.FindViewById <BookContentTextView>(Resource.Id.tvContent);
     tvBestComments = view.FindViewById <TextView>(Resource.Id.tvBestComments);
     rvBestComments = view.FindViewById <RecyclerView>(Resource.Id.rvBestComments);
     tvCommentCount = view.FindViewById <TextView>(Resource.Id.tvCommentCount);
 }
示例#2
0
 public HeaderViewHolder(View view)
 {
     ivAuthorAvatar     = view.FindViewById <ImageView>(Resource.Id.ivAuthorAvatar);
     tvBookAuthor       = view.FindViewById <TextView>(Resource.Id.tvBookAuthor);
     tvTime             = view.FindViewById <TextView>(Resource.Id.tvTime);
     tvTitle            = view.FindViewById <TextView>(Resource.Id.tvTitle);
     tvContent          = view.FindViewById <BookContentTextView>(Resource.Id.tvContent);
     rlBookInfo         = view.FindViewById <RelativeLayout>(Resource.Id.rlBookInfo);
     ivBookCover        = view.FindViewById <ImageView>(Resource.Id.ivBookCover);
     tvBookTitle        = view.FindViewById <TextView>(Resource.Id.tvBookTitle);
     tvHelpfullYesCount = view.FindViewById <TextView>(Resource.Id.tvHelpfullYesCount);
     tvHelpfullNoCount  = view.FindViewById <TextView>(Resource.Id.tvHelpfullNoCount);
     tvBestComments     = view.FindViewById <TextView>(Resource.Id.tvBestComments);
     rvBestComments     = view.FindViewById <RecyclerView>(Resource.Id.rvBestComments);
     tvCommentCount     = view.FindViewById <TextView>(Resource.Id.tvCommentCount);
     ratingBar          = view.FindViewById <XLHRatingBar>(Resource.Id.rating);
     ivAuthorAvatar     = view.FindViewById <ImageView>(Resource.Id.ivAuthorAvatar);
 }