本文整理匯總了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);