本文整理汇总了Java中com.justwayward.reader.bean.BookReviewList.ReviewsBean方法的典型用法代码示例。如果您正苦于以下问题:Java BookReviewList.ReviewsBean方法的具体用法?Java BookReviewList.ReviewsBean怎么用?Java BookReviewList.ReviewsBean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.justwayward.reader.bean.BookReviewList
的用法示例。
在下文中一共展示了BookReviewList.ReviewsBean方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: showBookReviewList
import com.justwayward.reader.bean.BookReviewList; //导入方法依赖的package包/类
@Override
public void showBookReviewList(List<BookReviewList.ReviewsBean> list, boolean isRefresh) {
if (isRefresh) {
mAdapter.clear();
}
mAdapter.addAll(list);
start = start + list.size();
}
示例2: OnCreateViewHolder
import com.justwayward.reader.bean.BookReviewList; //导入方法依赖的package包/类
@Override
public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
return new BaseViewHolder<BookReviewList.ReviewsBean>(parent, R.layout.item_community_book_review_list) {
@Override
public void setData(BookReviewList.ReviewsBean item) {
if (!SettingManager.getInstance().isNoneCover()) {
holder.setRoundImageUrl(R.id.ivBookCover, Constant.IMG_BASE_URL + item.book.cover,
R.drawable.cover_default);
} else {
holder.setImageResource(R.id.ivBookCover, R.drawable.cover_default);
}
holder.setText(R.id.tvBookTitle, item.book.title)
.setText(R.id.tvBookType, String.format(mContext.getString(R.string.book_review_book_type), Constant.bookType.get(item.book.type)))
.setText(R.id.tvTitle, item.title)
.setText(R.id.tvHelpfulYes, String.format(mContext.getString(R.string.book_review_helpful_yes), item.helpful.yes));
if (TextUtils.equals(item.state, "hot")) {
holder.setVisible(R.id.tvHot, true);
holder.setVisible(R.id.tvTime, false);
holder.setVisible(R.id.tvDistillate, false);
} else if (TextUtils.equals(item.state, "distillate")) {
holder.setVisible(R.id.tvDistillate, true);
holder.setVisible(R.id.tvHot, false);
holder.setVisible(R.id.tvTime, false);
} else {
holder.setVisible(R.id.tvTime, true);
holder.setVisible(R.id.tvHot, false);
holder.setVisible(R.id.tvDistillate, false);
holder.setText(R.id.tvTime, FormatUtils.getDescriptionTimeFromDateString(item.created));
}
}
};
}
示例3: onItemClick
import com.justwayward.reader.bean.BookReviewList; //导入方法依赖的package包/类
@Override
public void onItemClick(int position) {
BookReviewList.ReviewsBean data = mAdapter.getItem(position);
BookReviewDetailActivity.startActivity(activity, data._id);
}
示例4: showBookReviewList
import com.justwayward.reader.bean.BookReviewList; //导入方法依赖的package包/类
void showBookReviewList(List<BookReviewList.ReviewsBean> list, boolean isRefresh);