@Override public CommentViewHolder onCreateViewHolder(ViewGroup parent) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_comment, parent, false); CommentViewHolder commentViewHolder = new CommentViewHolder(view, true); if (commentReplyPresenter != null) { commentReplyPresenter.onCommentReplyViewCreated(); } return commentViewHolder; }
@Override public void onBindViewHolder(CommentViewHolder holder, int position) { if (commentReplyPresenter != null) { commentReplyPresenter.onCommentReplyViewBind(); } }