title: How to return to default style on EditText if I apply a background?
body: <p>I just encountered with a problem that I don't know how to solve. It looks silly but I cannot find a way to fix it.</p>
  
  <p>I have a form in android with several EditText and when you submit the form it checks those EditText and if they have wrong data I change the EditText to red border (applying a ninepatch image).</p>
  
  <pre><code>myEditText.setBackgroundResource(R.drawable.edittext_red);
  </code></pre>
  
  <p>The problem is, I want to restore android's default style when the user change the EditText, but I don't know how to do it. if I do:</p>
  
  <pre><code>myEditText.setBackgroundResource(0);
  </code></pre>
  
  <p>It will just remove everything and that's not what I want.</p>
  
  <p>Thanks!</p>