UI 调整,部分显示细节需要等待接口返回 http://gitlab.ghzhushou.com/pm/halo-app-issues/issues/338
This commit is contained in:
@ -33,6 +33,8 @@ public class CommentViewHolder extends BaseRecyclerViewHolder {
|
||||
public TextView commentUserNameTv;
|
||||
@BindView(R.id.comment_line_bottom)
|
||||
public View commentLineBottom;
|
||||
@BindView(R.id.comment_badge)
|
||||
public View commentBadge;
|
||||
|
||||
public CommentViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
|
||||
@ -88,6 +88,9 @@ public class AnswerCommentAdapter extends ListAdapter<CommentEntity> {
|
||||
holder.itemView.setOnClickListener(v -> CommentUtils.showAnswerCommentOptions(commentEntity, mContext, mOnCommentCallBackListener, null, !mIsShowingConversation, mAnswerId));
|
||||
holder.commentUserIconDv.setOnClickListener(v -> PersonalHomeActivity.startTargetActivity(mContext, commentEntity.getUser().getId(),"回答详情-评论管理"));
|
||||
holder.commentUserNameTv.setOnClickListener(v -> PersonalHomeActivity.startTargetActivity(mContext, commentEntity.getUser().getId(), "回答详情-评论管理"));
|
||||
|
||||
// TODO 根据字段判断是否需要显示指定标记
|
||||
holder.commentBadge.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
private void initFooterViewHolder(FooterViewHolder holder) {
|
||||
|
||||
@ -141,7 +141,7 @@ public class AnswerCommentFragment extends ListFragment<CommentEntity, AnswerCom
|
||||
DisplayMetrics displayMetrics = new DisplayMetrics();
|
||||
((Activity) getContext()).getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
|
||||
|
||||
mCommentContainer.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, displayMetrics.heightPixels / 2));
|
||||
mCommentContainer.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, displayMetrics.heightPixels * 2 / 3 ));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user