Problem temporarily disabling a EditText field
I'm trying to create an activity which gets input in the following form:

    () Option 1  (a RadioButton)
    () Option 2  (a RadioButton)
    () Custom    (a RadioButton)
    [     ]      (a EditText)

The idea is that the user can either choose one of the two predefined values, or enter a custom value. In order for him to enter a custom value, he must activate the "() Custom" RadioButton.

    <EditText 
      android:id="@+id/CustomValue"
      android:text="" 
      android:enabled="false"
      android:inputType="phone"
      android:digits="0123456789." />

The problem is the following

When this code is executed, before the "() Custom" RadioButton is checked, the EditText appears in a shaded color (unlike the ones which do not have enable=false). However, if the TextView is clicked, the input keyboard is displayed and it accepts input.

Does anyone know how to solve this? Thanks.
Problem temporarily disabling a EditText field
===

I'm trying to create an activity which gets input in the following form:

    () Option 1  (a RadioButton)
    () Option 2  (a RadioButton)
    () Custom    (a RadioButton)
    [     ]      (a EditText)

The idea is that the user can either choose one of the two predefined values, or enter a custom value. In order for him to enter a custom value, he must activate the "() Custom" RadioButton.

    <EditText 
      android:id="@+id/CustomValue"
      android:text="" 
      android:enabled="false"
      android:inputType="phone"
      android:digits="0123456789." />

The problem is the following

When this code is executed, before the "() Custom" RadioButton is checked, the EditText appears in a shaded color (unlike the ones which do not have enable=false). However, if the TextView is clicked, the input keyboard is displayed and it accepts input.

Does anyone know how to solve this? Thanks.