android:focusable - Deny Focus to an EditText

How to Deny Focus to an EditText

android:focusable was added in API Level 1

Boolean that controls whether a view can take focus. By default the user can not move focus to a view; by setting this attribute to true the view is allowed to take focus.
This makes the EditText not editable with the keyboard. They keyboard will not display by default. The user can select, copy and cut data from the EditText still. The user IS able to paste data to the EditText still.

1. Add an EditText in your main.xml file.

2. In the main.xml file, add the code below.

  <EditText
        ...
       android:focusable = "false"
  />

3. Compile and run!

Related Articles:
Resources:
http://developer.android.com/reference/android/view/View.html#attr_android:focusable
http://developer.android.com/reference/android/R.attr.html#focusable