private void registListener() { mSubscript = RxBus.getInstance() .regist(ReplyInfo.class) .subscribe( replyInfo -> { if (replyInfo.getTag().equals(ForumDetailActivity.class.getSimpleName())) { mBinding.llReplyContent.setVisibility(View.VISIBLE); mBinding.etReply.requestFocus(); mBinding.etReply.setHint("回复" + replyInfo.getReplyName()); mBinding.btnSend.setOnClickListener(v -> replyCommit(replyInfo)); UtilsUi.showSoftInput(mActivity); } }); }
@Override protected View getContentView(final LayoutInflater inflater, final ViewGroup container) { if (null == mContentView) { mContentView = new LoadingPage(UtilsUi.getContext()) { @Override public void load() { AppLoadingPagerFragment.this.load(); } @Override public View createLoadedView() { return AppLoadingPagerFragment.this.createLoadedView(inflater, container); } }; } else { UtilsView.removeSelfFromParent(mContentView); } return mContentView; }
public void hidenReply() { mBinding.llReplyContent.setVisibility(View.GONE); UtilsUi.hideSoftInput(mActivity); }