1117测试问题:
1.如果后台隐藏了评论,前端在消息中心点击跳转对话详情,会一直转圈圈,也没任何提示(应该要出现飞碟提示才对) 2.消息中心-客服,排版和“评论”不一致 (1)分割线与头像之间的间距(比“评论”那边窄了) (2)昵称和时间之间的间距(比“评论”那边宽了)
This commit is contained in:
@ -60,6 +60,8 @@ public class CommentDetailActivity extends BaseActivity implements OnCommentCall
|
||||
RelativeLayout mCommentDetailCommentRl;
|
||||
@BindView(R.id.comment_detail_sv)
|
||||
ScrollView mCommentDetailSv;
|
||||
@BindView(R.id.reuse_none_data)
|
||||
View mNoData;
|
||||
|
||||
private Dialog mSendingDialog;
|
||||
|
||||
@ -88,7 +90,7 @@ public class CommentDetailActivity extends BaseActivity implements OnCommentCall
|
||||
|
||||
String commentId = getIntent().getStringExtra(EntranceUtils.KEY_COMMENTID);
|
||||
|
||||
mAdapter = new CommentDetailAdapter(this, commentId, this);
|
||||
mAdapter = new CommentDetailAdapter(this, commentId, this, mNoData, mRecyclerView);
|
||||
mLayoutManager = new LinearLayoutManager(this);
|
||||
mRecyclerView.setLayoutManager(mLayoutManager);
|
||||
mRecyclerView.setAdapter(mAdapter);
|
||||
|
||||
@ -33,18 +33,26 @@ public class CommentDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
|
||||
|
||||
private List<CommentEntity> mCommentList;
|
||||
|
||||
private RecyclerView mRecyclerView;
|
||||
private View mDoData;
|
||||
|
||||
private String mCommentId;
|
||||
|
||||
private boolean mIsOver;
|
||||
private boolean mIsLoading;
|
||||
private boolean mIsNetworkError;
|
||||
|
||||
public CommentDetailAdapter(Context context, String commentId, OnCommentCallBackListener commentCallBackListener) {
|
||||
public CommentDetailAdapter(Context context, String commentId,
|
||||
OnCommentCallBackListener commentCallBackListener,
|
||||
View noData, RecyclerView recyclerView) {
|
||||
super(context);
|
||||
mCommentId = commentId;
|
||||
mOnCommentCallBackListener = commentCallBackListener;
|
||||
mCommentList = new ArrayList<>();
|
||||
|
||||
mDoData = noData;
|
||||
mRecyclerView = recyclerView;
|
||||
|
||||
loadData(0);
|
||||
}
|
||||
|
||||
@ -65,7 +73,16 @@ public class CommentDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
|
||||
}
|
||||
|
||||
mIsLoading = false;
|
||||
notifyItemRangeChanged(0, getItemCount() - 1);
|
||||
|
||||
if (mCommentList.size() == 0) {
|
||||
mDoData.setVisibility(View.VISIBLE);
|
||||
mRecyclerView.setVisibility(View.GONE);
|
||||
} else {
|
||||
mDoData.setVisibility(View.GONE);
|
||||
mRecyclerView.setVisibility(View.VISIBLE);
|
||||
notifyItemRangeChanged(0, getItemCount() - 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user