title: My Edittext starts invisible, how do I make it editable when visible?
body: <p>Normally I'd do it in XML or set it from code with </p>
  
  <pre><code>.setEnabled(true);
  </code></pre>
  
  <p>but I can't get it working in this case. In a nutshell, the <code>EditText</code> is set to invisible, with a <code>CheckBox</code> click it fades into view and should be editable but... it's not. The <code>EditText</code> fades in and fades out as intended but text can't be typed in the box... What to do?</p>
  
  <p>Here's my code :</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.addcontact);
  
  //      initialise the edittexts
          textcategory = (EditText) findViewById(R.id.textCategory);
          textcategory.setVisibility(View.INVISIBLE);
  
          fadeInAnimation = AnimationUtils.loadAnimation(this, R.anim.fadein);
          fadeOutAnimation = AnimationUtils.loadAnimation(this, R.anim.fadeout);
  
  //      lets be able to manipuate checkbox,
  //        make other things visible or not when checked
          checkBox = (CheckBox) findViewById(R.id.checkBox);
  
          checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  
              @Override
              public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
  
                  if (isChecked) {
                      // Now Set your animation
                      textcategory.startAnimation(fadeInAnimation);
                      fadeInAnimation.setFillAfter(true);
  
                  } else {
  
                      // Now Set your animation
                      textcategory.startAnimation(fadeOutAnimation);
  
                  }
  
              }
          });
  
      }
  </code></pre>
  
  <p>And my XML :</p>
  
  <pre><code>&lt;EditText
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:padding="5dp"
      android:textAppearance="?android:attr/textAppearanceMedium"
      android:hint="Select a Category"
      android:textSize="18sp"
      android:layout_marginBottom="10dp"
      android:id="@+id/textCategory"
      android:background="@drawable/back"
      android:layout_below="@+id/checkBox"
      android:layout_alignParentLeft="true"
      android:layout_alignParentStart="true" /&gt;
  </code></pre>