make edittext not editable android code example

Example 1: edittext not editable

I guess I am late but use following together to make it work:

 android:inputType="none"
 android:enabled="false"

Example 2: how to make edittext not editable in android studio

<EditText android:id="@+id/outputResult"
          android:inputType="text"
          android:editable="false"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/result" />

Example 3: make edittext not editable android

EditText mEdit = (EditText) findViewById(R.id.yourid);
mEdit.setEnabled(false);

Tags:

Java Example