diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ShareEventAdapter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ShareEventAdapter.java index c5a302e305..516f08f9b7 100644 --- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ShareEventAdapter.java +++ b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ShareEventAdapter.java @@ -1,10 +1,12 @@ package com.zhidao.mogo.module.event.panel.adapter; import android.content.Context; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; +import android.widget.RatingBar; import android.widget.TextView; import androidx.annotation.NonNull; @@ -71,20 +73,24 @@ public class ShareEventAdapter extends RecyclerView.Adapter position) { ShareEventDescription.ResultBean.EnthusiasmIndexBean data = (ShareEventDescription.ResultBean.EnthusiasmIndexBean) dataArrayList.get(position); if (data != null) { String shareNum = String.valueOf(data.getShareNum()); String likeNum = String.valueOf(data.getLikeNum()); + double enthusiasmIndex = data.getEnthusiasmIndex(); if (shareNum != null) { ((shareDescriptionViewHolder) holder).shareNumTextView.setText(shareNum); } if (likeNum != null) { ((shareDescriptionViewHolder) holder).approveNumTextView.setText(likeNum); } + ((shareDescriptionViewHolder) holder).ratingBar.setRating((float) enthusiasmIndex); } } } else if (holder instanceof shareItemViewHolder) { + //分享列表 if (dataArrayList.size() > position) { ShareEventItem.ResultBean.PageBean.ContentBean data = (ShareEventItem.ResultBean.PageBean.ContentBean) dataArrayList.get(position); if (data != null) { @@ -159,11 +165,14 @@ public class ShareEventAdapter extends RecyclerView.Adapter - + diff --git a/modules/mogo-module-event-panel/src/main/res/values/dimens.xml b/modules/mogo-module-event-panel/src/main/res/values/dimens.xml index a6b3daec93..c5cfb1e040 100644 --- a/modules/mogo-module-event-panel/src/main/res/values/dimens.xml +++ b/modules/mogo-module-event-panel/src/main/res/values/dimens.xml @@ -1,2 +1,13 @@ - \ No newline at end of file + + + + \ No newline at end of file