@Override @OnClick({ R.id.ib_picture, R.id.ib_mention, R.id.ib_trend_software, R.id.ib_emoji_keyboard, R.id.iv_clear_img, R.id.tv_clear }) public void onClick(View v) { switch (v.getId()) { case R.id.ib_emoji_keyboard: if (keyboardFragment.isShow()) { keyboardFragment.hideEmojiKeyBoard(); keyboardFragment.showSoftKeyboard(mEtInput); } else { keyboardFragment.showEmojiKeyBoard(); keyboardFragment.hideSoftKeyboard(); } break; case R.id.ib_picture: handleSelectPicture(); break; case R.id.ib_mention: tryToShowMetionUser(); break; case R.id.ib_trend_software: insertTrendSoftware(); break; case R.id.iv_clear_img: mIvImage.setImageBitmap(null); mLyImage.setVisibility(View.GONE); imgFile = null; break; case R.id.tv_clear: handleClearWords(); break; default: break; } }
@Override protected void onResume() { super.onResume(); keyboardFragment.hideEmojiKeyBoard(); }