1 /** 2 * 设置EditText编辑状态 3 */ 4 public void setEditState(EditText editText, boolean isEdit){ 5 editText.setFocusable(isEdit); 6 editText.setFocusableInTouchMode(isEdit); 7 editText.setCursorVisible(isEdit); 8 if(isEdit) editText.requestFocus(); 9 }