聚合云播

排序

谈情说案剧情简介

"); spannableString.setSpan(new ForegroundColorSpan(Color.parseColor("#4390f7")), 0, 5, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); textViewExcerpt.setText(spannableString); } @Override public void initListener() { super.initListener(); } @Override public int intiLayout() { return R.layout.activity_book_detail; } @Override public void initData(BookDetailPresenterImp presenter) { mPresenter = presenter; mPresenter.attachView(this); mPresenter.getBookDetail("57206c3539a913ad65d35c7b"); } @Override public void bookDetail(BookDetailBean bookDetailBean) { Glide.with(this) .load(Constant.IMG_BASE_URL bookDetailBean.getCover()) .placeholder(R.drawable.cover_default) .error(R.drawable.load_error) .into(imageViewCover); textViewTitle.setText(bookDetailBean.getTitle()); textViewAuthor.setText(bookDetailBean.getAuthor()); textViewType.setText(" 类型:" bookDetailBean.getType()); textViewState.setText(" 状态:" bookDetailBean.getState()); textViewUpdate.setText(" 更新:" bookDetailBean.getUpdated()); textViewLatelyFollower.setText(bookDetailBean.getLatelyFollower()); textViewWordCount.setText(bookDetailBean.getWordCount()); textViewRetentionRatio.setText(bookDetailBean.getRetentionRatio()); textViewSerializeWordCount.setText(bookDetailBean.getSerializeWordCount()); textViewLongIntro.setText(bookDetailBean.getLongIntro()); textViewMoreReview.setText("更多评论(" bookDetailBean.getReviews() ")"); textViewCommunity.setText("社区相关(" bookDetailBean.getPosts() ")"); textViewHelpfulYes.setText(bookDetailBean.getHelpful().getYes()); textViewHelpfulYesPercent.setText(bookDetailBean.getHelpful().getYesPercent() "%"); textViewHelpfulNo.setText(bookDetailBean.getHelpful().getNo()); listViewHotReview.setAdapter(new HotReviewAdapter(this, bookDetailBean.getHotReview())); listViewCommunity.setAdapter(new CommunityAdapter(this, bookDetailBean.getCommunity())); } @Override public void showProgressDialog() { } @Override public void hideProgressDialog() { } @Override public void showError(String error) { } @Override protected void onDestroy() { super.onDestroy(); mPresenter.detachView(); }}