Exemplo n.º 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);
  }
Exemplo n.º 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;
   }
 }
Exemplo n.º 3
0
 private void editSignature() {
   EditTextUtil.setEditable(editSignature, true);
 }
Exemplo n.º 4
0
 private void editNickname() {
   EditTextUtil.setEditable(editNickname, true);
 }