Beispiel #1
0
  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);
  }
Beispiel #2
0
 @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;
   }
 }
Beispiel #3
0
 private void editSignature() {
   EditTextUtil.setEditable(editSignature, true);
 }
Beispiel #4
0
 private void editNickname() {
   EditTextUtil.setEditable(editNickname, true);
 }