() {
+ @Override
+ public void onResourceReady(@NonNull Drawable resource, @Nullable Transition super Drawable> transition) {
+ int width = resource.getIntrinsicWidth();
+ int height = resource.getIntrinsicHeight();
+ int newHeight = maxWidth * height / width;
+ LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) item.getView(R.id.iv_topic).getLayoutParams();
+ layoutParams.width = maxWidth;
+ layoutParams.height = newHeight;
+ item.getView(R.id.iv_topic).setLayoutParams(layoutParams);
+ ((ImageView) item.getView(R.id.iv_topic)).setImageDrawable(resource);
+ }
+ });
+ } else {
+ item.setGone(R.id.iv_topic, false);
+ item.setGone(R.id.webview, true);
+ WebView webView = item.getView(R.id.webview);
+ String linkCss = "";
+ StringBuilder sb = new StringBuilder(4096);
+ if (!TextUtils.isEmpty(record.getLabel())) {
+ sb.append(record.getLabel());
+ }
+ sb.append(record.getContent());
+ if (record.getOptions() != null && record.getOptionsList().size() > 0) {
+ sb.append("");
+ sb.append(StringUtils.OptionsHtml(record.getOptionsList(), null));
+ sb.append("
");
+ }
+ String body = "" + sb.toString() + "