private void initView() { setTitleBackImgVisible(true); setTitleBackImg(R.drawable.title_return_white); setMiddleTitleVisible(true); setMiddleTitleName("编辑资料"); setTitleRightTvVisible(true); setTitleRightTv("完成"); setBaseActivityBgColor(getResources().getColor(R.color.main_title_color)); EditTextUtil.setEditable(editNickname, false); EditTextUtil.setEditable(editSignature, false); }
@OnTouch({R.id.edit_base_layout}) public boolean onTouch(View v, MotionEvent e) { EditTextUtil.setEditable(editNickname, false); EditTextUtil.setEditable(editSignature, false); /** 隐藏软键盘 */ try { InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); return imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); } catch (NullPointerException error) { // TODO: handle exception return false; } }
private void editSignature() { EditTextUtil.setEditable(editSignature, true); }
private void editNickname() { EditTextUtil.setEditable(editNickname, true); }