UI 调整,部分显示细节需要等待接口返回 http://gitlab.ghzhushou.com/pm/halo-app-issues/issues/338

This commit is contained in:
chenjuntao
2018-09-13 10:25:04 +08:00
parent cb891bc063
commit caa9dd4db4
14 changed files with 30 additions and 10 deletions

View File

@ -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);

View File

@ -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) {

View File

@ -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 ));
}
}