Code example for EditText

Methods: setEnabled, setFocusable

0
		this.editable = editable;
		if (e != null) {
			myHandler.post(new Runnable() {
				@Override 
				public void run() { 
					e.setEnabled(isEditable());
					e.setFocusable(isEditable());
				} 
			}); 
		} 
	} 
 
	@Override 
	public boolean save() { 
		if (!editable)
			return true; 
		try { 
			return save(Double.parseDouble(e.getText().toString()));
		} catch (NumberFormatException e) {
			// TODO show toast? 
			Log.e("EditScreen", "The entered value for " + getVarName()