Setting mType attribute not as a readOnly attribute